summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-28 12:03:21 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-14 18:13:13 +0000
commit688a10377ddd9f9e378ada5d06590168cf900b00 (patch)
tree0cc18c7a8d33aa0629e587582e057e89aa8705f3
parent735a1ac3848adcbbdda0cb1c912f858462ecc03f (diff)
downloadchrome-ec-688a10377ddd9f9e378ada5d06590168cf900b00.tar.gz
herobrine_npcx9: Update I2C buses
Add the I2C bus for the RTC chip. The chip runs at 400KHz. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: Ibf5eec51a938b7a1ce1d1379ae8c2ede2b2f4b03 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993218 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--baseboard/herobrine/baseboard.h1
-rw-r--r--board/herobrine_npcx9/board.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/baseboard/herobrine/baseboard.h b/baseboard/herobrine/baseboard.h
index 6e7ecc2327..ca5e73856a 100644
--- a/baseboard/herobrine/baseboard.h
+++ b/baseboard/herobrine/baseboard.h
@@ -183,6 +183,7 @@
#define I2C_PORT_TCPC0 NPCX_I2C_PORT1_0
#define I2C_PORT_TCPC1 NPCX_I2C_PORT2_0
#define I2C_PORT_WLC NPCX_I2C_PORT3_0
+#define I2C_PORT_RTC NPCX_I2C_PORT4_1
#define I2C_PORT_EEPROM NPCX_I2C_PORT5_0
#define I2C_PORT_SENSOR NPCX_I2C_PORT7_0
diff --git a/board/herobrine_npcx9/board.c b/board/herobrine_npcx9/board.c
index ade3bfa88a..b0f6923ff0 100644
--- a/board/herobrine_npcx9/board.c
+++ b/board/herobrine_npcx9/board.c
@@ -68,6 +68,8 @@ const struct i2c_port_t i2c_ports[] = {
GPIO_EC_I2C_USB_C0_PD_SDA},
{"tcpc1", I2C_PORT_TCPC1, 1000, GPIO_EC_I2C_USB_C1_PD_SCL,
GPIO_EC_I2C_USB_C1_PD_SDA},
+ {"rtc", I2C_PORT_RTC, 400, GPIO_EC_I2C_RTC_SCL,
+ GPIO_EC_I2C_RTC_SDA},
{"eeprom", I2C_PORT_EEPROM, 400, GPIO_EC_I2C_EEPROM_SCL,
GPIO_EC_I2C_EEPROM_SDA},
{"sensor", I2C_PORT_SENSOR, 400, GPIO_EC_I2C_SENSOR_SCL,