diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2022-04-21 13:52:47 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-25 17:38:08 +0000 |
commit | bd981b048badd21451233164b3cea4320e538a70 (patch) | |
tree | 03f88ffb5f10629beb275b85848b9677f35a1478 /board/willow | |
parent | 0b6ee501c3aef52a3f684f90a08b514ac54cadd8 (diff) | |
download | chrome-ec-bd981b048badd21451233164b3cea4320e538a70.tar.gz |
cleanup: it8801: Rename discrete Keyboard configs
Renamed IT8801 discrete keyboard related names like NOT_RAW, I2C_PORT,
I2C_ADDRESS and Interrupt GPIO to support discrete keyboard in Zephyr
Shim.
BUG=b:230008245
BRANCH=none
TEST=make buildall
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Change-Id: I9be3ff570681f88e1fc3ac0650f9919ad272b847
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3600627
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/willow')
-rw-r--r-- | board/willow/board.c | 2 | ||||
-rw-r--r-- | board/willow/board.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/board/willow/board.c b/board/willow/board.c index 463550ddb2..44bb9b7352 100644 --- a/board/willow/board.c +++ b/board/willow/board.c @@ -122,7 +122,7 @@ __override struct keyboard_scan_config keyscan_config = { struct ioexpander_config_t ioex_config[CONFIG_IO_EXPANDER_PORT_COUNT] = { [0] = { - .i2c_host_port = IT8801_KEYBOARD_PWM_I2C_PORT, + .i2c_host_port = I2C_PORT_KB_DISCRETE, .i2c_addr_flags = IT8801_I2C_ADDR1, .drv = &it8801_ioexpander_drv, }, diff --git a/board/willow/board.h b/board/willow/board.h index 1fd6abd2ba..060493f030 100644 --- a/board/willow/board.h +++ b/board/willow/board.h @@ -73,12 +73,12 @@ #define I2C_PORT_USB_MUX 0 #define I2C_PORT_CHARGER board_get_charger_i2c() #define I2C_PORT_SENSORS 1 -#define IT8801_KEYBOARD_PWM_I2C_PORT 1 +#define I2C_PORT_KB_DISCRETE 1 #define I2C_PORT_VIRTUAL_BATTERY I2C_PORT_BATTERY #define I2C_PORT_BATTERY 2 /* IT8801 I2C address */ -#define IT8801_KEYBOARD_PWM_I2C_ADDR_FLAGS IT8801_I2C_ADDR1 +#define KB_DISCRETE_I2C_ADDR_FLAGS IT8801_I2C_ADDR1 /* Enable Accel over SPI */ #define CONFIG_SPI_ACCEL_PORT 0 /* The first SPI controller port (SPI2) */ |