mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
grunt: Add support for I2C bus 5
This is used by the keyboard backlight driver. Add support for it so we can use this chip. BUG=b:69379749 BRANCH=none TEST=manual: boot AP gpioset KB_BL_EN 1 i2cscan See that bus 5 shows 0x6c now Change-Id: I37dd497688f7d280119bf2a226e23bee35063e0c Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/871135 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
This commit is contained in:
@@ -131,6 +131,7 @@ const struct i2c_port_t i2c_ports[] = {
|
||||
{"tcpc0", I2C_PORT_TCPC0, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA},
|
||||
{"tcpc1", I2C_PORT_TCPC1, 400, GPIO_I2C2_SCL, GPIO_I2C2_SDA},
|
||||
{"thermal", I2C_PORT_THERMAL, 400, GPIO_I2C3_SCL, GPIO_I2C3_SDA},
|
||||
{"kblight", I2C_PORT_KBLIGHT, 100, GPIO_I2C5_SCL, GPIO_I2C5_SDA},
|
||||
{"sensor", I2C_PORT_SENSOR, 400, GPIO_I2C7_SCL, GPIO_I2C7_SDA},
|
||||
};
|
||||
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
|
||||
|
||||
@@ -114,6 +114,7 @@
|
||||
#define I2C_PORT_TCPC0 NPCX_I2C_PORT1_0
|
||||
#define I2C_PORT_TCPC1 NPCX_I2C_PORT2_0
|
||||
#define I2C_PORT_THERMAL NPCX_I2C_PORT3_0
|
||||
#define I2C_PORT_KBLIGHT NPCX_I2C_PORT5_0
|
||||
#define I2C_PORT_SENSOR NPCX_I2C_PORT7_0
|
||||
/* Accelerometer and Gyroscope are the same device. */
|
||||
#define I2C_PORT_ACCEL I2C_PORT_SENSOR
|
||||
|
||||
Reference in New Issue
Block a user