summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2023-02-15 19:39:09 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-15 23:08:51 +0000
commit0dcea8f91170ff88b9f3b9a501e354e3a5b33454 (patch)
treecc080000ec38500021570d335efb1f6711c8f679 /baseboard
parent9892a4554fb0aec2bec03b44b75ec65e97044260 (diff)
downloadchrome-ec-0dcea8f91170ff88b9f3b9a501e354e3a5b33454.tar.gz
dibbi: Split I2C configuration from baseboard and add HDMI-related buses
BUG=b:269367960 TEST=i2cscan can scan all buses BRANCH=none Change-Id: Iccb3a28a24de4e82119d50a1f581162ac58913cf Signed-off-by: Sam McNally <sammc@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4252439 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/dedede/variant_ec_it8320.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/baseboard/dedede/variant_ec_it8320.c b/baseboard/dedede/variant_ec_it8320.c
index 7025bba896..5e5590d60c 100644
--- a/baseboard/dedede/variant_ec_it8320.c
+++ b/baseboard/dedede/variant_ec_it8320.c
@@ -73,6 +73,7 @@ const struct vcmp_t vcmp_list[] = {
BUILD_ASSERT(ARRAY_SIZE(vcmp_list) <= CHIP_VCMP_COUNT);
BUILD_ASSERT(ARRAY_SIZE(vcmp_list) == VCMP_COUNT);
+#ifndef BOARD_DIBBI
/* I2C Ports */
const struct i2c_port_t i2c_ports[] = {
{ .name = "eeprom",
@@ -81,13 +82,11 @@ const struct i2c_port_t i2c_ports[] = {
.scl = GPIO_EC_I2C_EEPROM_SCL,
.sda = GPIO_EC_I2C_EEPROM_SDA },
-#ifndef BOARD_DIBBI
{ .name = "battery",
.port = I2C_PORT_BATTERY,
.kbps = 100,
.scl = GPIO_EC_I2C_BATTERY_SCL,
.sda = GPIO_EC_I2C_BATTERY_SDA },
-#endif
#if defined(HAS_TASK_MOTIONSENSE) || defined(BOARD_SHOTZO)
{ .name = "sensor",
@@ -112,3 +111,4 @@ const struct i2c_port_t i2c_ports[] = {
.sda = GPIO_EC_I2C_USB_C0_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
+#endif