samsung/exynos5420: Spelling Fixes

Change-Id: I966645c83ae78943a7dbb9dc05af4fded6f4e5b5
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/7703
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Martin Roth 2014-12-07 14:59:11 -07:00 committed by Martin Roth
parent de7ed6fc7c
commit 1fc2ba5e6d
17 changed files with 39 additions and 39 deletions

View File

@ -47,11 +47,11 @@ unsigned long get_uart_clk(int dev_index);
void set_mmc_clk(int dev_index, unsigned int div); void set_mmc_clk(int dev_index, unsigned int div);
/** /**
* get the clk frequency of the required peripherial * get the clk frequency of the required peripheral
* *
* @param peripherial Peripherial id * @param peripheral Peripheral id
* *
* @return frequency of the peripherial clk * @return frequency of the peripheral clk
*/ */
unsigned long clock_get_periph_rate(enum periph_id peripheral); unsigned long clock_get_periph_rate(enum periph_id peripheral);
@ -61,7 +61,7 @@ unsigned long clock_get_periph_rate(enum periph_id peripheral);
#define MCT_HZ 24000000 #define MCT_HZ 24000000
/* /*
* Set mshci controller instances clock drivder * Set mshci controller instances clock divider
* *
* @param enum periph_id instance of the mshci controller * @param enum periph_id instance of the mshci controller
* *
@ -70,7 +70,7 @@ unsigned long clock_get_periph_rate(enum periph_id peripheral);
int clock_set_mshci(enum periph_id peripheral); int clock_set_mshci(enum periph_id peripheral);
/* /*
* Set dwmci controller instances clock drivder * Set dwmci controller instances clock divider
* *
* @param enum periph_id instance of the dwmci controller * @param enum periph_id instance of the dwmci controller
* *
@ -81,7 +81,7 @@ int clock_set_dwmci(enum periph_id peripheral);
/* /*
* Sets the epll clockrate * Sets the epll clockrate
* *
* @param rate Required clock rate to the presacaler in Hz * @param rate Required clock rate to the prescaler in Hz
* *
* Return 0 if ok else -1 * Return 0 if ok else -1
*/ */
@ -664,7 +664,7 @@ static struct exynos5_mct * const exynos_mct =
(void *)EXYNOS5_MULTI_CORE_TIMER_BASE; (void *)EXYNOS5_MULTI_CORE_TIMER_BASE;
#define EXYNOS5_EPLLCON0_LOCKED_SHIFT 29 /* EPLL Locked bit position*/ #define EXYNOS5_EPLLCON0_LOCKED_SHIFT 29 /* EPLL Locked bit position*/
#define EPLL_SRC_CLOCK 24000000 /*24 MHz Cristal Input */ #define EPLL_SRC_CLOCK 24000000 /*24 MHz Crystal Input */
#define TIMEOUT_EPLL_LOCK 1000 #define TIMEOUT_EPLL_LOCK 1000
#define AUDIO_0_RATIO_MASK 0x0f #define AUDIO_0_RATIO_MASK 0x0f

View File

@ -28,7 +28,7 @@
/* input clock of PLL: SMDK5420 has 24MHz input clock */ /* input clock of PLL: SMDK5420 has 24MHz input clock */
#define CONFIG_SYS_CLK_FREQ 24000000 #define CONFIG_SYS_CLK_FREQ 24000000
/* Epll Clock division values to achive different frequency output */ /* Epll Clock division values to achieve different frequency output */
static struct st_epll_con_val epll_div[] = { static struct st_epll_con_val epll_div[] = {
{ 192000000, 0, 48, 3, 1, 0 }, { 192000000, 0, 48, 3, 1, 0 },
{ 180000000, 0, 45, 3, 1, 0 }, { 180000000, 0, 45, 3, 1, 0 },
@ -336,7 +336,7 @@ int clock_set_dwmci(enum periph_id peripheral)
return -1; return -1;
} }
/* The SDCLKIN is divided insided controller by the DIVRATIO field in /* The SDCLKIN is divided inside the controller by the DIVRATIO field in
* CLKSEL register, so we must calculate clock value as * CLKSEL register, so we must calculate clock value as
* cclk_in = SDCLKIN / (DIVRATIO + 1) * cclk_in = SDCLKIN / (DIVRATIO + 1)
* Currently the RIVRATIO must be 3 for MMC0 and MMC2 on Exynos5420 * Currently the RIVRATIO must be 3 for MMC0 and MMC2 on Exynos5420
@ -360,7 +360,7 @@ void clock_ll_set_pre_ratio(enum periph_id periph_id, unsigned divisor)
u32 *reg; u32 *reg;
/* /*
* For now we only handle a very small subset of peipherals here. * For now we only handle a very small subset of peripherals here.
* Others will need to (and do) mangle the clock registers * Others will need to (and do) mangle the clock registers
* themselves, At some point it is hoped that this function can work * themselves, At some point it is hoped that this function can work
* from a table or calculated register offset / mask. For now this * from a table or calculated register offset / mask. For now this
@ -585,7 +585,7 @@ int clock_epll_set_rate(unsigned long rate)
epll_con |= epll_div[i].s_div << EPLL_CON0_SDIV_SHIFT; epll_con |= epll_div[i].s_div << EPLL_CON0_SDIV_SHIFT;
/* /*
* Required period ( in cycles) to genarate a stable clock output. * Required period ( in cycles) to generate a stable clock output.
* The maximum clock time can be up to 3000 * PDIV cycles of PLLs * The maximum clock time can be up to 3000 * PDIV cycles of PLLs
* frequency input (as per spec) * frequency input (as per spec)
*/ */
@ -622,7 +622,7 @@ int clock_set_i2s_clk_prescaler(unsigned int src_frq, unsigned int dst_frq)
unsigned int div ; unsigned int div ;
if ((dst_frq == 0) || (src_frq == 0)) { if ((dst_frq == 0) || (src_frq == 0)) {
printk(BIOS_DEBUG, "%s: Invalid requency input for prescaler\n", __func__); printk(BIOS_DEBUG, "%s: Invalid frequency input for prescaler\n", __func__);
printk(BIOS_DEBUG, "src frq = %d des frq = %d ", src_frq, dst_frq); printk(BIOS_DEBUG, "src frq = %d des frq = %d ", src_frq, dst_frq);
return -1; return -1;
} }

View File

@ -111,7 +111,7 @@ static void exynos_displayport_init(device_t dev, u32 lcdbase,
* *
* Note: We may want to do something clever to ensure the framebuffer * Note: We may want to do something clever to ensure the framebuffer
* region is aligned such that we don't change dcache policy for other * region is aligned such that we don't change dcache policy for other
* stuff inadvertantly. * stuff inadvertently.
*/ */
uint32_t lower = ALIGN_DOWN(lcdbase, MiB); uint32_t lower = ALIGN_DOWN(lcdbase, MiB);
uint32_t upper = ALIGN_UP(lcdbase + fb_size, MiB); uint32_t upper = ALIGN_UP(lcdbase + fb_size, MiB);

View File

@ -399,7 +399,7 @@ struct mem_timings {
uint8_t chips_per_channel; /* number of chips per channel */ uint8_t chips_per_channel; /* number of chips per channel */
uint8_t chips_to_configure; /* number of chips to configure */ uint8_t chips_to_configure; /* number of chips to configure */
uint8_t send_zq_init; /* 1 to send this command */ uint8_t send_zq_init; /* 1 to send this command */
unsigned int impedance; /* drive strength impedeance */ unsigned int impedance; /* drive strength impedance */
uint8_t gate_leveling_enable; /* check gate leveling is enabled */ uint8_t gate_leveling_enable; /* check gate leveling is enabled */
}; };

View File

@ -63,7 +63,7 @@ int dmc_config_zq(struct mem_timings *mem,
val &= ~ZQ_MANUAL_STR; val &= ~ZQ_MANUAL_STR;
/* /*
* Since we are manaully calibrating the ZQ values, * Since we are manually calibrating the ZQ values,
* we are looping for the ZQ_init to complete. * we are looping for the ZQ_init to complete.
*/ */
i = ZQ_INIT_TIMEOUT; i = ZQ_INIT_TIMEOUT;
@ -96,12 +96,12 @@ void update_reset_dll(struct exynos5_dmc *dmc, enum ddr_mode mode)
writel(val, &dmc->phycontrol0); writel(val, &dmc->phycontrol0);
} }
/* Update DLL Information: Force DLL Resyncronization */ /* Update DLL Information: Force DLL Resynchronization */
val = readl(&dmc->phycontrol0); val = readl(&dmc->phycontrol0);
val |= FP_RSYNC; val |= FP_RSYNC;
writel(val, &dmc->phycontrol0); writel(val, &dmc->phycontrol0);
/* Reset Force DLL Resyncronization */ /* Reset Force DLL Resynchronization */
val = readl(&dmc->phycontrol0); val = readl(&dmc->phycontrol0);
val &= ~FP_RSYNC; val &= ~FP_RSYNC;
writel(val, &dmc->phycontrol0); writel(val, &dmc->phycontrol0);

View File

@ -143,7 +143,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, int interleave_size, int reset)
writel(mem->membaseconfig1, &exynos_tzasc1->membaseconfig1); writel(mem->membaseconfig1, &exynos_tzasc1->membaseconfig1);
} }
/* Memory Channel Inteleaving Size /* Memory Channel Interleaving Size
* Exynos5420 Channel interleaving = 128 bytes * Exynos5420 Channel interleaving = 128 bytes
*/ */
/* MEMCONFIG0/1 */ /* MEMCONFIG0/1 */
@ -158,7 +158,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, int interleave_size, int reset)
writel(mem->prechconfig_tp_cnt << PRECHCONFIG_TP_CNT_SHIFT, writel(mem->prechconfig_tp_cnt << PRECHCONFIG_TP_CNT_SHIFT,
&exynos_drex1->prechconfig0); &exynos_drex1->prechconfig0);
/* TimingRow, TimingData, TimingPower and Timingaref /* TimingRow, TimingData, TimingPower and Timingref
* values as per Memory AC parameters * values as per Memory AC parameters
*/ */
writel(mem->timing_ref, &exynos_drex0->timingref); writel(mem->timing_ref, &exynos_drex0->timingref);
@ -184,7 +184,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, int interleave_size, int reset)
/* /*
* During Suspend-Resume & S/W-Reset, as soon as PMU releases * During Suspend-Resume & S/W-Reset, as soon as PMU releases
* pad retention, CKE goes high. This causes memory contents * pad retention, CKE goes high. This causes memory contents
* not to be retained during DRAM initialization. Therfore, * not to be retained during DRAM initialization. Therefore,
* there is a new control register(0x100431e8[28]) which lets us * there is a new control register(0x100431e8[28]) which lets us
* release pad retention and retain the memory content until the * release pad retention and retain the memory content until the
* initialization is complete. * initialization is complete.

View File

@ -218,7 +218,7 @@ static unsigned int exynos_dp_handle_edid(struct edp_device_info *edp_info)
printk(BIOS_ERR, "DP Wrong MAX LINK RATE : %x\n", temp); printk(BIOS_ERR, "DP Wrong MAX LINK RATE : %x\n", temp);
return -1; return -1;
} }
/*Refer VESA Display Port Stnadard Ver1.1a Page 120 */ /*Refer VESA Display Port Standard Ver1.1a Page 120 */
if (edp_info->dpcd_rev == DP_DPCD_REV_11) { if (edp_info->dpcd_rev == DP_DPCD_REV_11) {
temp = buf[DPCD_MAX_LANE_COUNT] & 0x1f; temp = buf[DPCD_MAX_LANE_COUNT] & 0x1f;
if (buf[DPCD_MAX_LANE_COUNT] & 0x80) if (buf[DPCD_MAX_LANE_COUNT] & 0x80)
@ -420,7 +420,7 @@ static unsigned int exynos_dp_read_dpcd_adj_req(unsigned char lane_num,
unsigned char buf; unsigned char buf;
unsigned int dpcd_addr; unsigned int dpcd_addr;
/*lane_num value is used as arry index, so this range 0 ~ 3 */ /*lane_num value is used as array index, so this range 0 ~ 3 */
dpcd_addr = DPCD_ADJUST_REQUEST_LANE0_1 + (lane_num / 2); dpcd_addr = DPCD_ADJUST_REQUEST_LANE0_1 + (lane_num / 2);
ret = exynos_dp_read_byte_from_dpcd(dpcd_addr, &buf); ret = exynos_dp_read_byte_from_dpcd(dpcd_addr, &buf);

View File

@ -105,7 +105,7 @@ static void exynos_dp_init_analog_param(void)
/* /*
* Set termination * Set termination
* Normal bandgap, Normal swing, Tx terminal registor 61 ohm * Normal bandgap, Normal swing, Tx terminal resistor 61 ohm
* 24M Phy clock, TX digital logic power is 100:1.0625V * 24M Phy clock, TX digital logic power is 100:1.0625V
*/ */
reg = SEL_BG_NEW_BANDGAP | TX_TERMINAL_CTRL_61_OHM | reg = SEL_BG_NEW_BANDGAP | TX_TERMINAL_CTRL_61_OHM |
@ -160,7 +160,7 @@ static void exynos_dp_init_interrupt(void)
*/ */
lwrite32(INT_POL, &dp_regs->int_ctl); lwrite32(INT_POL, &dp_regs->int_ctl);
/* Clear pending regisers */ /* Clear pending registers */
lwrite32(0xff, &dp_regs->common_int_sta1); lwrite32(0xff, &dp_regs->common_int_sta1);
lwrite32(0xff, &dp_regs->common_int_sta2); lwrite32(0xff, &dp_regs->common_int_sta2);
lwrite32(0xff, &dp_regs->common_int_sta3); lwrite32(0xff, &dp_regs->common_int_sta3);
@ -350,7 +350,7 @@ void exynos_dp_init_hpd(void)
{ {
u32 reg; u32 reg;
/* Clear interrupts releated to Hot Plug Dectect */ /* Clear interrupts related to Hot Plug Detect */
reg = HOTPLUG_CHG | HPD_LOST | PLUG; reg = HOTPLUG_CHG | HPD_LOST | PLUG;
lwrite32(reg, &dp_regs->common_int_sta4); lwrite32(reg, &dp_regs->common_int_sta4);
@ -380,7 +380,7 @@ void exynos_dp_init_aux(void)
{ {
u32 reg; u32 reg;
/* Clear inerrupts related to AUX channel */ /* Clear interrupts related to AUX channel */
reg = RPLY_RECEIV | AUX_ERR; reg = RPLY_RECEIV | AUX_ERR;
lwrite32(reg, &dp_regs->int_sta); lwrite32(reg, &dp_regs->int_sta);
@ -804,7 +804,7 @@ int exynos_dp_read_bytes_from_i2c(u32 device_addr,
/* /*
* If Rx sends defer, Tx sends only reads * If Rx sends defer, Tx sends only reads
* request without sending addres * request without sending address
*/ */
if (!defer) if (!defer)
retval = retval =

View File

@ -93,7 +93,7 @@ static void exynos_fimd_set_dualrgb(vidinfo_t *vid, unsigned int enabled)
cfg = EXYNOS_DUALRGB_BYPASS_DUAL | EXYNOS_DUALRGB_LINESPLIT | cfg = EXYNOS_DUALRGB_BYPASS_DUAL | EXYNOS_DUALRGB_LINESPLIT |
EXYNOS_DUALRGB_VDEN_EN_ENABLE; EXYNOS_DUALRGB_VDEN_EN_ENABLE;
/* in case of Line Split mode, MAIN_CNT doesn't neet to set. */ /* in case of Line Split mode, MAIN_CNT doesn't need to be set. */
cfg |= EXYNOS_DUALRGB_SUB_CNT(vid->vl_col / 2) | cfg |= EXYNOS_DUALRGB_SUB_CNT(vid->vl_col / 2) |
EXYNOS_DUALRGB_MAIN_CNT(0); EXYNOS_DUALRGB_MAIN_CNT(0);
} }

View File

@ -93,7 +93,7 @@ struct exynos5_fimd_panel {
unsigned int right_margin; /* Horizontal Frontporch */ unsigned int right_margin; /* Horizontal Frontporch */
unsigned int hsync; /* Horizontal Sync Pulse Width */ unsigned int hsync; /* Horizontal Sync Pulse Width */
unsigned int xres; /* X Resolution */ unsigned int xres; /* X Resolution */
unsigned int yres; /* Y Resopultion */ unsigned int yres; /* Y Resolution */
}; };
/* LCDIF Register Map */ /* LCDIF Register Map */

View File

@ -544,7 +544,7 @@ int gpio_set_value(unsigned gpio, int value);
enum mvl3 { enum mvl3 {
LOGIC_0, LOGIC_0,
LOGIC_1, LOGIC_1,
LOGIC_Z, /* high impedence / tri-stated / floating */ LOGIC_Z, /* high impedance / tri-stated / floating */
}; };
#endif /* CPU_SAMSUNG_EXYNOS5420_GPIO_H */ #endif /* CPU_SAMSUNG_EXYNOS5420_GPIO_H */

View File

@ -790,7 +790,7 @@ struct exynos5_phy_control;
#define PHY_TERM_EN (1 << 30) /* Termination enable for PHY */ #define PHY_TERM_EN (1 << 30) /* Termination enable for PHY */
#define DMC_CTRL_SHGATE (1 << 29) /* Duration of DQS gating signal */ #define DMC_CTRL_SHGATE (1 << 29) /* Duration of DQS gating signal */
#define CTRL_ATGATE (1 << 6) #define CTRL_ATGATE (1 << 6)
#define FP_RSYNC (1 << 3) /* Force DLL resyncronization */ #define FP_RSYNC (1 << 3) /* Force DLL resynchronization */
/* Driver strength for CK, CKE, CS & CA */ /* Driver strength for CK, CKE, CS & CA */
#define IMP_OUTPUT_DRV_40_OHM 0x5 #define IMP_OUTPUT_DRV_40_OHM 0x5
@ -809,7 +809,7 @@ struct exynos5_phy_control;
struct mem_timings; struct mem_timings;
/* Errors that we can encourter in low-level setup */ /* Errors that we can encounter in low-level setup */
enum { enum {
SETUP_ERR_OK, SETUP_ERR_OK,
SETUP_ERR_RDLV_COMPLETE_TIMEOUT = -1, SETUP_ERR_RDLV_COMPLETE_TIMEOUT = -1,

View File

@ -267,7 +267,7 @@ static void power_down_core(void)
wfi(); wfi();
} }
/* Configures the CPU states shard memory page and then shutdown all cores. */ /* Configures the CPU states shared memory page and then shutdown all cores. */
static void configure_secondary_cores(void) static void configure_secondary_cores(void)
{ {
if (get_bits(read_midr(), 4, 12) == PART_NUMBER_CORTEX_A15) { if (get_bits(read_midr(), 4, 12) == PART_NUMBER_CORTEX_A15) {

View File

@ -168,7 +168,7 @@ static int spi_rx_tx(struct spi_slave *slave, uint8_t *rxp, int rx_bytes,
if (espi->half_duplex) { if (espi->half_duplex) {
step = 1; step = 1;
} else if ((rx_bytes | tx_bytes | (uintptr_t)rxp |(uintptr_t)txp) & 3) { } else if ((rx_bytes | tx_bytes | (uintptr_t)rxp |(uintptr_t)txp) & 3) {
printk(BIOS_CRIT, "%s: WARNING: tranfer mode decreased to 1B\n", printk(BIOS_CRIT, "%s: WARNING: transfer mode decreased to 1B\n",
__func__); __func__);
step = 1; step = 1;
} else { } else {

View File

@ -69,8 +69,8 @@ struct tmu_info exynos5420_tmu_info = {
/* /*
* After reading temperature code from register, compensating * After reading temperature code from register, compensating
* its value and calculating celsius temperatue, * its value and calculating celsius temperature,
* get current temperatue. * get current temperature.
* *
* @return current temperature of the chip as sensed by TMU * @return current temperature of the chip as sensed by TMU
*/ */

View File

@ -66,7 +66,7 @@ enum tmu_status_t {
TMU_STATUS_TRIPPED, TMU_STATUS_TRIPPED,
}; };
/* Tmeperature threshold values for various thermal events */ /* Temperature threshold values for various thermal events */
struct temperature_params { struct temperature_params {
/* minimum value in temperature code range */ /* minimum value in temperature code range */
unsigned int min_val; unsigned int min_val;

View File

@ -36,7 +36,7 @@
* The coefficient, used to calculate the baudrate on S5P UARTs is * The coefficient, used to calculate the baudrate on S5P UARTs is
* calculated as * calculated as
* C = UBRDIV * 16 + number_of_set_bits_in_UDIVSLOT * C = UBRDIV * 16 + number_of_set_bits_in_UDIVSLOT
* however, section 31.6.11 of the datasheet doesn't recomment using 1 for 1, * however, section 31.6.11 of the datasheet doesn't recommend using 1 for 1,
* 3 for 2, ... (2^n - 1) for n, instead, they suggest using these constants: * 3 for 2, ... (2^n - 1) for n, instead, they suggest using these constants:
*/ */
static const int udivslot[] = { static const int udivslot[] = {
@ -120,7 +120,7 @@ static int exynos5_uart_err_check(struct s5p_uart *uart, int op)
/* /*
* Read a single byte from the serial port. Returns 1 on success, 0 * Read a single byte from the serial port. Returns 1 on success, 0
* otherwise. When the function is succesfull, the character read is * otherwise. When the function is successful, the character read is
* written into its argument c. * written into its argument c.
*/ */
static unsigned char exynos5_uart_rx_byte(struct s5p_uart *uart) static unsigned char exynos5_uart_rx_byte(struct s5p_uart *uart)