summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2019-03-14 15:05:49 -0600
committerDiana Z <dzigterman@chromium.org>2019-03-20 22:49:07 +0000
commit1d95cefbce43059d2ff74f8ad3ad01ff7c06b50f (patch)
tree22939bea8acfc2352124203c56a037eaf96faa98 /board
parent6e4fcc3c4f840df5ec295656737752d8c66253e6 (diff)
downloadchrome-ec-1d95cefbce43059d2ff74f8ad3ad01ff7c06b50f.tar.gz
Phaser: Remove support for early board versions
At this point, support for the early board versions can be removed. This leaves the board code cleaner, and provides a better starting point for any follower projects. BUG=b:128413812 BRANCH=octopus TEST=builds Change-Id: I0eda3ecc5b33bfe0721a0fa9d59f7884a0d3732e Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1525066 Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/phaser/board.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/board/phaser/board.c b/board/phaser/board.c
index 3ced43da7e..630662a75f 100644
--- a/board/phaser/board.c
+++ b/board/phaser/board.c
@@ -210,18 +210,6 @@ static void board_update_sensor_config_from_sku(void)
}
}
-/* This method can be removed once version 3+ boards are the majority */
-static void board_update_gpio_from_board_id(uint32_t board_id)
-{
- /*
- * GPIO83 used to be USB_OTG which is unused on the SoC side, but is
- * a 1.8V signal.
- */
- if (board_id < 3) {
- gpio_set_flags(GPIO_USB_C0_PD_RST, GPIO_ODR_LOW);
- }
-}
-
static void cbi_init(void)
{
uint32_t val;
@@ -230,9 +218,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);