diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-10-16 15:08:02 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-20 11:28:18 +0000 |
commit | fd29287d25499ec96215cd1ac6a412425a303474 (patch) | |
tree | dc9ad991358a9f9c421c5b8e0e3b4b7529620ebc /board/dooly/board.c | |
parent | 708dfddb93de0d162418fd24e0eb50eb895fa2c7 (diff) | |
download | chrome-ec-fd29287d25499ec96215cd1ac6a412425a303474.tar.gz |
dooly: update gpio by board version
This patch update volume down button gpio by board version.
BUG=b:169638870
BRANCH=puff
TEST=make BOARD=dooly
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I6674451dc03c5a8ab3df9f57f9e4992736dd8e14
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2478262
Reviewed-by: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/dooly/board.c')
-rw-r--r-- | board/dooly/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/dooly/board.c b/board/dooly/board.c index d540e8465b..e082d7fb63 100644 --- a/board/dooly/board.c +++ b/board/dooly/board.c @@ -642,6 +642,8 @@ static void board_init(void) memmap_batt_flags = host_get_memmap(EC_MEMMAP_BATT_FLAG); *memmap_batt_flags |= EC_BATT_FLAG_AC_PRESENT; + if (board_version >= 1) + buttons[BUTTON_VOLUME_DOWN].gpio = GPIO_EC_VOLDN_BTN_ODL_V1; } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); |