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>
diff --git a/board/phaser/board.c b/board/phaser/board.c index 3ced43d..630662a 100644 --- a/board/phaser/board.c +++ b/board/phaser/board.c
@@ -210,18 +210,6 @@ } } -/* 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 @@ 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);