summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorMike Lee <mike5@huaqin.corp-partner.google.com>2021-01-28 14:52:23 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-04 17:07:00 +0000
commit523b9bbe417451baf62a58f7a23f50d2df597b93 (patch)
treeebac4153f8ecec4439a9c53421bd9fd41c9fca75 /baseboard
parenta8c0c7fab5e9c0aab36cd82686aee66ad0f7bb68 (diff)
downloadchrome-ec-523b9bbe417451baf62a58f7a23f50d2df597b93.tar.gz
Sasukette: Initial EC image
Initial EC image for Sasukette 1. Only One typeC port 2. Have no motionsense BUG=b:177193132 BRANCH=dedede TEST=make BOARD=sasukette pass boot device successfully Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I53116d7bbc29f7cc13bdb51676cd88cf379ddd22 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2652827 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/dedede/baseboard.c5
-rw-r--r--baseboard/dedede/variant_ec_it8320.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/baseboard/dedede/baseboard.c b/baseboard/dedede/baseboard.c
index a735b6ec49..898791e7ce 100644
--- a/baseboard/dedede/baseboard.c
+++ b/baseboard/dedede/baseboard.c
@@ -238,8 +238,9 @@ void board_hibernate_late(void)
/* Disable any pull-ups on C0 and C1 interrupt lines */
gpio_set_flags(GPIO_USB_C0_INT_ODL, GPIO_INPUT);
- gpio_set_flags(GPIO_USB_C1_INT_ODL, GPIO_INPUT);
-
+ #if CONFIG_USB_PD_PORT_MAX_COUNT > 1
+ gpio_set_flags(GPIO_USB_C1_INT_ODL, GPIO_INPUT);
+ #endif
/*
* Turn on the Z state. This will not return as it will cut power to
* the EC.
diff --git a/baseboard/dedede/variant_ec_it8320.c b/baseboard/dedede/variant_ec_it8320.c
index 227226c667..5d3a2f1aad 100644
--- a/baseboard/dedede/variant_ec_it8320.c
+++ b/baseboard/dedede/variant_ec_it8320.c
@@ -84,11 +84,12 @@ const struct i2c_port_t i2c_ports[] = {
"battery", I2C_PORT_BATTERY, 100, GPIO_EC_I2C_BATTERY_SCL,
GPIO_EC_I2C_BATTERY_SDA
},
-
+#ifdef HAS_TASK_MOTIONSENSE
{
"sensor", I2C_PORT_SENSOR, 400, GPIO_EC_I2C_SENSOR_SCL,
GPIO_EC_I2C_SENSOR_SDA
},
+#endif
#if CONFIG_USB_PD_PORT_MAX_COUNT > 1
{