diff options
author | Ko_Ko <Ko_Ko@compal.corp-partner.google.com> | 2021-01-11 17:47:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-12 02:39:20 +0000 |
commit | 3ff09d0b1d57e782960d1ba3b648f9931f5f8e83 (patch) | |
tree | 45b815318a18a65c638df3b641a5840998e85308 /board/madoo | |
parent | 7043d2c89f500846d867f9539bd8718939647917 (diff) | |
download | chrome-ec-3ff09d0b1d57e782960d1ba3b648f9931f5f8e83.tar.gz |
Madoo: Remove unused function
Remove reconfigure_5v_gpio in madoo to avoid unnecessary issue
BUG=None
BRANCH=dedede
TEST=flash on DVT and make sure DUT can be powered up
Signed-off-by: Ko_Ko <Ko_Ko@compal.corp-partner.google.com>
Change-Id: Ib53fcf6b262ccb79d9fa60645620ecea8b9a9cdf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620731
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Ko Ko <ko_ko@compal.corp-partner.google.com>
Tested-by: Ko Ko <ko_ko@compal.corp-partner.google.com>
Diffstat (limited to 'board/madoo')
-rw-r--r-- | board/madoo/board.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/board/madoo/board.c b/board/madoo/board.c index c66c1e29e2..c5389dfb49 100644 --- a/board/madoo/board.c +++ b/board/madoo/board.c @@ -222,40 +222,9 @@ void board_reset_pd_mcu(void) */ } -static void reconfigure_5v_gpio(void) -{ - /* - * b/147257497: On early boards, GPIO_EN_PP5000 was swapped with - * GPIO_VOLUP_BTN_ODL. Therefore, we'll actually need to set that GPIO - * instead for those boards. Note that this breaks the volume up button - * functionality. - */ - if (system_get_board_version() < 0) { - CPRINTS("old board - remapping 5V en"); - gpio_set_flags(GPIO_VOLUP_BTN_ODL, GPIO_OUT_LOW); - } -} -DECLARE_HOOK(HOOK_INIT, reconfigure_5v_gpio, HOOK_PRIO_INIT_I2C+1); - static void set_5v_gpio(int level) { - int version; - enum gpio_signal gpio; - - /* - * b/147257497: On early boards, GPIO_EN_PP5000 was swapped with - * GPIO_VOLUP_BTN_ODL. Therefore, we'll actually need to set that GPIO - * instead for those boards. Note that this breaks the volume up button - * functionality. - */ - version = system_get_board_version(); - - /* - * If the CBI EEPROM wasn't formatted, assume it's a very early board. - */ - gpio = version < 0 ? GPIO_VOLUP_BTN_ODL : GPIO_EN_PP5000; - - gpio_set_level(gpio, level); + gpio_set_level(GPIO_EN_PP5000, level); } __override void board_power_5v_enable(int enable) |