diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-01-05 17:45:29 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-07 19:21:59 +0000 |
commit | b39d6726cbc4f3d14cadaaa0c18a2883cfa1d962 (patch) | |
tree | 3d180e0b81407c29245df1c8dc4277b1b83b6125 /board/cr50/board.c | |
parent | 4ecdbc3b1e4ddd94bd488f148c87db87720de61c (diff) | |
download | chrome-ec-b39d6726cbc4f3d14cadaaa0c18a2883cfa1d962.tar.gz |
coil: i2cs -> i2cp
Rename i2cs functionas and variables to i2cp. Change some basic
comments.
I will rework the i2cp comments to stop using controller when referring
to the i2cp, because it's kind of confusing now that master has been
renamed to controller.
BUG=b:175244613
TEST=make buildall -j
Change-Id: I9574e77ab42427ca90d5b8a6421793f52e519f67
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2611761
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'board/cr50/board.c')
-rw-r--r-- | board/cr50/board.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index d9720956de..0dd9e5ef5d 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -1577,7 +1577,7 @@ static void init_board_properties(void) } DECLARE_HOOK(HOOK_INIT, init_board_properties, HOOK_PRIO_FIRST); -void i2cs_set_pinmux(void) +void i2cp_set_pinmux(void) { /* Connect I2CS SDA/SCL output to A1/A9 pads */ GWRITE(PINMUX, DIOA1_SEL, GC_PINMUX_I2CS0_SDA_SEL); @@ -1806,17 +1806,17 @@ void board_start_ite_sync(void) hook_call_deferred(&deferred_ite_sync_reset_data, 10 * MSEC); } -void board_unwedge_i2cs(void) +void board_unwedge_i2cp(void) { /* - * Create connection between i2cs_scl and the 'unwedge_scl' GPIO, and - * generate the i2c stop sequence which will reset the i2cs FSM. + * Create connection between i2cp_scl and the 'unwedge_scl' GPIO, and + * generate the i2c stop sequence which will reset the i2cp FSM. * - * First, disconnect the external pin from the i2cs_scl input. + * First, disconnect the external pin from the i2cp_scl input. */ GWRITE(PINMUX, DIOA9_SEL, 0); - /* Connect the 'unwedge' GPIO to the i2cs_scl input. */ + /* Connect the 'unwedge' GPIO to the i2cp_scl input. */ GWRITE(PINMUX, GPIO1_GPIO5_SEL, GC_PINMUX_I2CS0_SCL_SEL); /* Generate a 'stop' condition. */ @@ -1830,7 +1830,7 @@ void board_unwedge_i2cs(void) /* Disconnect the 'unwedge' mode SCL. */ GWRITE(PINMUX, GPIO1_GPIO5_SEL, 0); - /* Restore external pin connection to the i2cs_scl. */ + /* Restore external pin connection to the i2cp_scl. */ GWRITE(PINMUX, DIOA9_SEL, GC_PINMUX_I2CS0_SCL_SEL); } |