mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
chip/g to chip/lm4: fix more misspellings in comments
No functional changes. BUG=none BRANCH=none TEST=make buildall passes Change-Id: I0c4fcc900ec0326d6904aa14f298206e62be0fda Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/403418 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
@@ -37,7 +37,7 @@ struct g_flash_region {
|
||||
* properly.
|
||||
*
|
||||
* The function is passed an array of the g_flash_region structures of the
|
||||
* max_regions size, it fills as many entties as necessary and returns the
|
||||
* max_regions size, it fills as many entries as necessary and returns the
|
||||
* number of set up entries.
|
||||
*/
|
||||
int flash_regions_to_enable(struct g_flash_region *regions,
|
||||
|
||||
@@ -51,13 +51,13 @@
|
||||
* I2C_INST_FWBYTESCOUNT = 1 -> 1 byte in FWBYTES (register address)
|
||||
* I2C_INST_REPEATEDSTART = 1 -> send start bit following write
|
||||
* I2C_INST_RWDEVADDR = 1 -> send slave address in read mode
|
||||
* I2C_INST_RWDEVADDR_RWB = 1 -> read bytes followin slave address
|
||||
* I2C_INST_RWDEVADDR_RWB = 1 -> read bytes following slave address
|
||||
* I2C_INST_FINALNA = 1 -> ACK read bytes, NACK last byte read
|
||||
* I2C_INST_FINALSTOP = 1 -> send stop bit
|
||||
* I2C_INST_DEVADDRVAL = slave address
|
||||
* I2C_FWBYTES[b7:b0] = out[0] -> register address byte
|
||||
*
|
||||
* Once trasnaction is complete:
|
||||
* Once transaction is complete:
|
||||
* in[0] = I2C_RW0[b7:b0] -> copy first byte of read into destination
|
||||
* in[1] = I2C_RW0[b15:b8] -> copy 2nd byte of read into destination
|
||||
*
|
||||
@@ -325,7 +325,7 @@ static int i2cm_execute_sequence(int port, int slave_addr, const uint8_t *out,
|
||||
int rv;
|
||||
uint32_t inst;
|
||||
|
||||
/* Build sequence instruciton */
|
||||
/* Build sequence instruction */
|
||||
inst = i2cm_build_sequence(port, slave_addr, out, out_size, in,
|
||||
in_size, flags);
|
||||
/* Start transaction */
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
*
|
||||
* The file holding data written by the master has associated with it a
|
||||
* register showing where the controller accessed the file last, comparing it
|
||||
* with its pervious value tells the driver how many bytes recently written by
|
||||
* with its previous value tells the driver how many bytes recently written by
|
||||
* the master are there.
|
||||
*
|
||||
* The file holding data to be read by the master has a register associtated
|
||||
* The file holding data to be read by the master has a register associated
|
||||
* with it showing where was the latest BIT the controller transmitted.
|
||||
*
|
||||
* The controller can generate interrupts on three different conditions:
|
||||
@@ -248,7 +248,7 @@ void i2cs_post_read_fill_fifo(uint8_t *buffer, size_t len)
|
||||
/* Write in remainder bytes */
|
||||
for (i = 0; i < remainder_bytes; i++)
|
||||
word_out_value |= *buffer++ << (8 * (start_offset + i));
|
||||
/* Write to fifo regsiter */
|
||||
/* Write to fifo register */
|
||||
value_addr[addr_offset] = word_out_value;
|
||||
addr_offset = (addr_offset + 1) & (REGISTER_FILE_MASK >> 2);
|
||||
/* Account for bytes consumed */
|
||||
@@ -267,7 +267,7 @@ void i2cs_post_read_fill_fifo(uint8_t *buffer, size_t len)
|
||||
}
|
||||
len -= (num_words << 2);
|
||||
|
||||
/* Now proccess remaining bytes (if any), will be <= 3 at this point */
|
||||
/* Now process remaining bytes (if any), will be <= 3 at this point */
|
||||
remainder_bytes = len;
|
||||
if (remainder_bytes) {
|
||||
/* read from HW fifo */
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
/*
|
||||
* This file is a proof of concept stub which will be extended and split into
|
||||
* appropriate pieces sortly, when full blown support for cr50 bootrom is
|
||||
* appropriate pieces shortly, when full blown support for cr50 bootrom is
|
||||
* introduced.
|
||||
*/
|
||||
uint32_t sleep_mask;
|
||||
|
||||
@@ -188,7 +188,7 @@ int spi_enable(int port, int enable)
|
||||
continue;
|
||||
|
||||
#ifndef CONFIG_SPI_MASTER_NO_CS_GPIOS
|
||||
/* Make sure CS# is deaserted and disabled. */
|
||||
/* Make sure CS# is deasserted and disabled. */
|
||||
gpio_set_level(spi_devices[i].gpio_cs, 1);
|
||||
gpio_set_flags(spi_devices[i].gpio_cs, GPIO_ODR_HIGH);
|
||||
#endif /* CONFIG_SPI_MASTER_NO_CS_GPIOS */
|
||||
|
||||
@@ -404,7 +404,7 @@ static void sps_receive_callback(uint8_t *data, size_t data_size, int cs_status)
|
||||
rx_state = spstrx_receiving;
|
||||
else
|
||||
/*
|
||||
* If we won't be able to receve this much, enter the
|
||||
* If we won't be able to receive this much, enter the
|
||||
* 'frame finished' state.
|
||||
*/
|
||||
rx_state = spstrx_finished;
|
||||
|
||||
@@ -41,7 +41,7 @@ int sps_transmit(uint8_t *data, size_t data_size);
|
||||
/*
|
||||
* These functions return zero on success or non-zero on failure (attempt to
|
||||
* register a callback on top of existing one, or attempt to unregister
|
||||
* non-exitisng callback.
|
||||
* non-existing callback.
|
||||
*
|
||||
* rx_fifo_threshold value of zero means 'default'.
|
||||
*/
|
||||
|
||||
@@ -282,7 +282,7 @@ void system_clear_retry_counter(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Check wich of the two cr50 RW images is newer, return true if the first
|
||||
* Check which of the two cr50 RW images is newer, return true if the first
|
||||
* image is no older than the second one.
|
||||
*
|
||||
* Note that RO and RW images use the same header structure. When deciding
|
||||
|
||||
@@ -190,7 +190,7 @@ void fw_upgrade_command_handler(void *body,
|
||||
|
||||
/*
|
||||
* If there have been any problems when determining the valid
|
||||
* secitons offsets/sizes - return an error code.
|
||||
* Sections offsets/sizes - return an error code.
|
||||
*/
|
||||
if (!valid_sections.ro_top_offset ||
|
||||
!valid_sections.rw_top_offset) {
|
||||
|
||||
@@ -81,7 +81,7 @@ struct signed_header_version {
|
||||
* just as to any other block of the transfer sequence.
|
||||
*
|
||||
* It became clear that there is a need to be able to enhance the upgrade
|
||||
* protocol, while stayng backwards compatible.
|
||||
* protocol, while staying backwards compatible.
|
||||
*
|
||||
* All newer protocol versions (starting with version 2) respond to the very
|
||||
* first packet with an 8 byte or larger response, where the first 4 bytes are
|
||||
|
||||
@@ -110,7 +110,7 @@ struct usb_spi_config {
|
||||
struct usb_spi_state *state;
|
||||
|
||||
/*
|
||||
* Interface and endpoint indicies.
|
||||
* Interface and endpoint indices.
|
||||
*/
|
||||
int interface;
|
||||
int endpoint;
|
||||
@@ -123,7 +123,7 @@ struct usb_spi_config {
|
||||
|
||||
|
||||
/*
|
||||
* Pointer to tx and rx queus and bounce buffer.
|
||||
* Pointer to tx and rx queues and bounce buffer.
|
||||
*/
|
||||
uint8_t *buffer;
|
||||
struct consumer const consumer;
|
||||
|
||||
@@ -74,7 +74,7 @@ static uint32_t block_size;
|
||||
static uint32_t block_index;
|
||||
|
||||
/*
|
||||
* Verify that the contens of the USB rx queue is a valid transfer start
|
||||
* Verify that the contents of the USB rx queue is a valid transfer start
|
||||
* message from host, and if so - save its contents in the passed in
|
||||
* update_frame_header structure.
|
||||
*/
|
||||
@@ -157,7 +157,7 @@ static void upgrade_out_handler(struct consumer const *consumer, size_t count)
|
||||
|
||||
if (!valid_transfer_start(consumer, count, &u.upfr)) {
|
||||
/*
|
||||
* Someting is wrong, this payload is not a valid
|
||||
* Something is wrong, this payload is not a valid
|
||||
* update start PDU. Let'w indicate this by returning
|
||||
* a single byte error code.
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,7 @@ void IRQ_HANDLER(GC_IRQNUM_WATCHDOG0_WDOGINT)(void)
|
||||
asm volatile("mov r0, lr\n"
|
||||
"mov r1, sp\n"
|
||||
/* Must push registers in pairs to keep 64-bit aligned
|
||||
* stack for ARM EABI. This also conveninently saves
|
||||
* stack for ARM EABI. This also conveniently saves
|
||||
* R0=LR so we can pass it to task_resched_if_needed. */
|
||||
"push {r0, lr}\n"
|
||||
/* We've lowered our runlevel, so just rebooting the ARM
|
||||
|
||||
@@ -147,7 +147,7 @@ void __ram_code clock_pll_changed(void)
|
||||
IT83XX_ECPM_SCDCR0 = (2 << 4);
|
||||
/* JTAG and EC */
|
||||
IT83XX_ECPM_SCDCR3 = (pll_div_jtag << 4) | pll_div_ec;
|
||||
/* EC sleep after stanbdy instructioin */
|
||||
/* EC sleep after standby instruction */
|
||||
clock_ec_pll_ctrl(EC_PLL_SLEEP);
|
||||
/* Global interrupt enable */
|
||||
asm volatile ("setgie.e");
|
||||
@@ -157,7 +157,7 @@ void __ram_code clock_pll_changed(void)
|
||||
asm volatile ("setgie.d");
|
||||
/* New FND clock frequency */
|
||||
IT83XX_ECPM_SCDCR0 = (pll_div_fnd << 4);
|
||||
/* EC doze after stanbdy instructioin */
|
||||
/* EC doze after standby instruction */
|
||||
clock_ec_pll_ctrl(EC_PLL_DOZE);
|
||||
}
|
||||
|
||||
|
||||
@@ -539,13 +539,13 @@ static void flash_code_static_dma(void)
|
||||
/*
|
||||
* Enable ILM
|
||||
* Set the logic memory address(flash code of RO/RW) in eflash
|
||||
* by programing the register SCARx bit19-bit0.
|
||||
* by programming the register SCARx bit19-bit0.
|
||||
*/
|
||||
IT83XX_SMFI_SCAR2L = FLASH_DMA_START & 0xFF;
|
||||
IT83XX_SMFI_SCAR2M = (FLASH_DMA_START >> 8) & 0xFF;
|
||||
IT83XX_SMFI_SCAR2H = (FLASH_DMA_START >> 16) & 0x0F;
|
||||
/*
|
||||
* Validate Direct-map SRAM function by programing
|
||||
* Validate Direct-map SRAM function by programming
|
||||
* register SCARx bit20=0
|
||||
*/
|
||||
IT83XX_SMFI_SCAR2H &= ~0x10;
|
||||
|
||||
@@ -166,7 +166,7 @@ int __hw_clock_source_init(uint32_t start_t)
|
||||
IT83XX_ETWD_ETXCTRL(FREE_EXT_TIMER_L) |= (1 << 3);
|
||||
/* init free running timer (timer 4, TIMER_H), clock source is 8mhz */
|
||||
ext_timer_ms(FREE_EXT_TIMER_H, EXT_PSR_8M_HZ, 0, 1, 0xffffffff, 1, 1);
|
||||
/* 1us counter settiing (timer 3, TIMER_L) */
|
||||
/* 1us counter setting (timer 3, TIMER_L) */
|
||||
ext_timer_ms(FREE_EXT_TIMER_L, EXT_PSR_8M_HZ, 1, 0, 7, 1, 1);
|
||||
__hw_clock_source_set(start_t);
|
||||
/* init event timer */
|
||||
|
||||
@@ -201,7 +201,7 @@ struct i2c_port_data {
|
||||
int err; /* Error code, if any */
|
||||
uint8_t addr; /* address of device */
|
||||
uint32_t timeout_us; /* Transaction timeout, or 0 to use default */
|
||||
uint8_t freq; /* Freqency setting */
|
||||
uint8_t freq; /* Frequency setting */
|
||||
|
||||
enum i2c_ch_status i2ccs;
|
||||
/* Task waiting on port, or TASK_ID_INVALID if none. */
|
||||
@@ -887,7 +887,7 @@ static void i2c_freq_changed(void)
|
||||
* (1 / (1000 x freq)) x (1 / 2)) - 2
|
||||
*/
|
||||
if (freq) {
|
||||
/* Get SMBus clock devide value */
|
||||
/* Get SMBus clock divide value */
|
||||
clk_div = (IT83XX_ECPM_SCDCR2 & 0x0F) + 1;
|
||||
/* Calculate PSR value */
|
||||
psr = (PLL_CLOCK /
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/* CPU core BFD configuration */
|
||||
#include "core/cortex-m/config_core.h"
|
||||
|
||||
/* 16.000 Mhz internal oscillator frequency (PIOSC) */
|
||||
/* 16.000 MHz internal oscillator frequency (PIOSC) */
|
||||
#define INTERNAL_CLOCK 16000000
|
||||
|
||||
/* Number of IRQ vectors on the NVIC */
|
||||
|
||||
@@ -813,7 +813,7 @@ static void lpc_init(void)
|
||||
#endif /* CONFIG_UART_HOST */
|
||||
|
||||
/*
|
||||
* Unmaksk LPC bus reset interrupt. This lets us monitor the PCH
|
||||
* Unmask LPC bus reset interrupt. This lets us monitor the PCH
|
||||
* PLTRST# signal for debugging.
|
||||
*/
|
||||
LM4_LPC_LPCIM |= (1 << 31);
|
||||
@@ -833,7 +833,7 @@ static void lpc_init(void)
|
||||
|
||||
/*
|
||||
* Ensure the EC (slave) has control of the memory-mapped I/O space.
|
||||
* Once the EC has won arbtration for the memory-mapped space, it will
|
||||
* Once the EC has won arbitration for the memory-mapped space, it will
|
||||
* keep control of it until it writes the last byte in the space.
|
||||
* (That never happens; we can't use the last byte in the space because
|
||||
* ACPI can't see it anyway.)
|
||||
|
||||
@@ -301,7 +301,7 @@ void system_set_rtc_alarm(uint32_t seconds, uint32_t microseconds)
|
||||
* Wait for the write to commit. This ensures that the RTC interrupt
|
||||
* actually gets enabled. This is important if we're about to switch
|
||||
* the system to the 30 kHz oscillator, which might prevent the write
|
||||
* from comitting.
|
||||
* from committing.
|
||||
*/
|
||||
wait_for_hibctl_wc();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ void IRQ_HANDLER(LM4_IRQ_WATCHDOG)(void)
|
||||
asm volatile("mov r0, lr\n"
|
||||
"mov r1, sp\n"
|
||||
/* Must push registers in pairs to keep 64-bit aligned
|
||||
* stack for ARM EABI. This also conveninently saves
|
||||
* stack for ARM EABI. This also conveniently saves
|
||||
* R0=LR so we can pass it to task_resched_if_needed. */
|
||||
"push {r0, lr}\n"
|
||||
"bl watchdog_trace\n"
|
||||
|
||||
Reference in New Issue
Block a user