From 60bbe1ca75ae49d9cd48a61327f9161a9174a801 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 17 Jan 2018 10:28:07 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/871135 Reviewed-by: Aaron Durbin Reviewed-by: Edward Hill Reviewed-by: Jett Rink --- board/grunt/board.c | 1 + board/grunt/board.h | 1 + 2 files changed, 2 insertions(+) diff --git a/board/grunt/board.c b/board/grunt/board.c index a542c735de..600151e655 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -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); diff --git a/board/grunt/board.h b/board/grunt/board.h index 36c52bbab7..973b9e76cd 100644 --- a/board/grunt/board.h +++ b/board/grunt/board.h @@ -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 -- cgit v1.2.1