summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/dooly/board.c2
-rw-r--r--board/dooly/board.h1
-rw-r--r--board/dooly/gpio.inc1
3 files changed, 4 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);
diff --git a/board/dooly/board.h b/board/dooly/board.h
index b49c6457cf..62103eb5c2 100644
--- a/board/dooly/board.h
+++ b/board/dooly/board.h
@@ -52,6 +52,7 @@
#define CONFIG_ADC
#define CONFIG_BOARD_HAS_RTC_RESET
#define CONFIG_BOARD_VERSION_CBI
+#define CONFIG_BUTTONS_RUNTIME_CONFIG
#define CONFIG_DEDICATED_RECOVERY_BUTTON
#define CONFIG_BOARD_RESET_AFTER_POWER_ON
#define CONFIG_CRC8
diff --git a/board/dooly/gpio.inc b/board/dooly/gpio.inc
index d2e0fe4f80..5f5ecc4f5a 100644
--- a/board/dooly/gpio.inc
+++ b/board/dooly/gpio.inc
@@ -63,6 +63,7 @@ GPIO_INT(USB_A1_OC_ODL, PIN(0, 3), GPIO_INT_BOTH, port_ocp_interrupt)
/* Volume button interrupts */
GPIO_INT(EC_VOLDN_BTN_ODL, PIN(C, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
+GPIO_INT(EC_VOLDN_BTN_ODL_V1, PIN(9, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
GPIO_INT(EC_VOLUP_BTN_ODL, PIN(8, 0), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
/* PCH/CPU signals */