summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-01-17 10:28:07 -0800
committerSimon Glass <sjg@chromium.org>2018-01-18 19:05:37 +0000
commit60bbe1ca75ae49d9cd48a61327f9161a9174a801 (patch)
treecd9ba32315ca1c71788eb2f59309a72f113f6515
parent97c819c6282ec04de3705614e9ef60b25b7d3908 (diff)
downloadchrome-ec-60bbe1ca75ae49d9cd48a61327f9161a9174a801.tar.gz
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>
-rw-r--r--board/grunt/board.c1
-rw-r--r--board/grunt/board.h1
2 files changed, 2 insertions, 0 deletions
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