summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2019-03-14 14:41:09 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-03-20 08:52:51 -0700
commit1638f1643fc91632581f53342cd5667da529c439 (patch)
treec638364c936f0abd526b6bea4c64ef55943ff2c6
parent99b60956d4ae10cc44c346444fc0347d25ec3742 (diff)
downloadchrome-ec-1638f1643fc91632581f53342cd5667da529c439.tar.gz
Meep: Remove support for board version 0
At this point, support for board version 0 can be pulled from the code. This leaves the board file cleaner to read, and also creates a better starting point reference for followers. BUG=b:128413812 BRANCH=octopus TEST=builds Change-Id: I331383d21fda9b4e6ca37df47c0025f00e54698d Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1525064 Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--board/meep/board.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/board/meep/board.c b/board/meep/board.c
index 4081436276..9420a74f40 100644
--- a/board/meep/board.c
+++ b/board/meep/board.c
@@ -214,18 +214,6 @@ int board_is_convertible(void)
return sku_id == 1 || sku_id == 2 || sku_id == 3 || sku_id == 255;
}
-static void board_update_gpio_from_board_id(uint32_t board_id)
-{
- if (board_id == 0) {
- /*
- * USB2_OTG_ID is 1.8V pin on the SoC side with an internal
- * pull-up. However, it is 3.3V on the EC side. So, configure
- * it as ODR so that the EC never drives it high.
- */
- gpio_set_flags(GPIO_USB_C0_PD_RST, GPIO_ODR_LOW);
- }
-}
-
static void board_update_sensor_config_from_sku(void)
{
if (board_is_convertible()) {
@@ -249,9 +237,6 @@ static void cbi_init(void)
sku_id = val;
ccprints("SKU: 0x%04x", sku_id);
- if (cbi_get_board_version(&val) == EC_SUCCESS)
- board_update_gpio_from_board_id(val);
-
board_update_sensor_config_from_sku();
}
DECLARE_HOOK(HOOK_INIT, cbi_init, HOOK_PRIO_INIT_I2C + 1);