diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-06-02 23:24:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-04 22:27:36 +0000 |
commit | 670b3eabd0929557f3213ea199744d38914c2a99 (patch) | |
tree | 91083d1d8ab3b6a9b7a3adf8ce19c94a3c4527b4 /chip/npcx | |
parent | ff852d9fff09938ac5212ea2aed5e7268a90051b (diff) | |
download | chrome-ec-670b3eabd0929557f3213ea199744d38914c2a99.tar.gz |
COIL: chip/npcx: Update some comments
This updates some comments to be OSHWA friendly.
BRANCH=none
BUG=b:163885307
TEST=buildall and compare_build.sh pass
Change-Id: I9fdcf1a64febccb3622379ffb5f4e31efeb8bb12
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938040
Reviewed-by: Harry Cutts <hcutts@chromium.org>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
Diffstat (limited to 'chip/npcx')
-rw-r--r-- | chip/npcx/espi.c | 14 | ||||
-rw-r--r-- | chip/npcx/spi.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/chip/npcx/espi.c b/chip/npcx/espi.c index 82cfbb913d..5827c5ba9e 100644 --- a/chip/npcx/espi.c +++ b/chip/npcx/espi.c @@ -134,7 +134,7 @@ static const struct vw_event_t vw_events_list[] = { {VW_SLP_WLAN, 0x42, 0x02}, }; -/* Flag for SLAVE_BOOT_LOAD siganls */ +/* Flag for boot load signals */ static uint8_t boot_load_done; /*****************************************************************************/ @@ -149,7 +149,7 @@ static void espi_reset_recovery(void) boot_load_done = 0; } -/* Configure Master-to-Slave virtual wire inputs */ +/* Configure Controller-to-Peripheral virtual wire inputs */ static void espi_vw_config_in(const struct vwevms_config_t *config) { uint32_t val; @@ -181,7 +181,7 @@ static void espi_vw_config_in(const struct vwevms_config_t *config) } } -/* Configure Slave-to-Master virtual wire outputs */ +/* Configure Peripheral-to-Controller virtual wire outputs */ static void espi_vw_config_out(const struct vwevsm_config_t *config) { uint32_t val; @@ -213,7 +213,7 @@ static void espi_vw_config_out(const struct vwevsm_config_t *config) } } -/* Config Master-to-Slave VWire interrupt edge type and enable it */ +/* Config Controller-to-Peripheral VWire interrupt edge type and enable it */ static void espi_enable_vw_int(const struct host_wui_item *vwire_int) { uint8_t table = vwire_int->table; @@ -593,7 +593,7 @@ void espi_interrupt(void) } /* - * Send SLAVE_BOOTLOAD_DONE and SLAVE_BOOTLOAD_STATUS + * Send BOOTLOAD_DONE and BOOTLOAD_STATUS * events to host simultaneously. To indicate the * completion of EC firmware code loading. */ @@ -632,11 +632,11 @@ void espi_init(void) SET_FIELD(NPCX_ESPICFG, NPCX_ESPICFG_MAXFREQ_FIELD, NPCX_ESPI_MAXFREQ_MAX); - /* Configure Master-to-Slave Virtual Wire indexes (Inputs) */ + /* Configure Controller-to-Peripheral Virtual Wire indexes (Inputs) */ for (i = 0; i < ARRAY_SIZE(espi_in_list); i++) espi_vw_config_in(&espi_in_list[i]); - /* Configure Slave-to-Master Virtual Wire indexes (Outputs) */ + /* Configure Peripheral-to-Controller Virtual Wire indexes (Outputs) */ for (i = 0; i < ARRAY_SIZE(espi_out_list); i++) espi_vw_config_out(&espi_out_list[i]); diff --git a/chip/npcx/spi.c b/chip/npcx/spi.c index 9f6195ad36..55fa8f85ab 100644 --- a/chip/npcx/spi.c +++ b/chip/npcx/spi.c @@ -25,7 +25,7 @@ #define CPRINTS(format, args...) cprints(CC_SPI, format, ## args) #endif -/* SPI IP as SPI master */ +/* SPI IP as SPI controller */ #define SPI_CLK 8000000 /** * Clear SPI data buffer. @@ -107,7 +107,7 @@ int spi_enable(const struct spi_device_t *spi_device, int enable) /** - * Flush an SPI transaction and receive data from slave. + * Flush an SPI transaction and receive data from peripheral. * * @param spi_device device to talk to * @param txdata transfer data @@ -115,7 +115,7 @@ int spi_enable(const struct spi_device_t *spi_device, int enable) * @param rxdata receive data * @param rxlen receive length * @return success - * @notes set master transaction mode in npcx chip + * @notes set controller transaction mode in npcx chip */ int spi_transaction(const struct spi_device_t *spi_device, const uint8_t *txdata, int txlen, |