summaryrefslogtreecommitdiff
path: root/board/coral
diff options
context:
space:
mode:
Diffstat (limited to 'board/coral')
-rw-r--r--board/coral/board.c7
-rw-r--r--board/coral/board.h4
2 files changed, 3 insertions, 8 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index 43ea4fca91..7ab358e912 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -501,13 +501,6 @@ const struct temp_sensor_t temp_sensors[] = {
};
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
-const struct button_config buttons[CONFIG_BUTTON_COUNT] = {
- {"Volume Down", KEYBOARD_BUTTON_VOLUME_DOWN, GPIO_EC_VOLDN_BTN_ODL,
- 30 * MSEC, 0},
- {"Volume Up", KEYBOARD_BUTTON_VOLUME_UP, GPIO_EC_VOLUP_BTN_ODL,
- 30 * MSEC, 0},
-};
-
/* Called by APL power state machine when transitioning from G3 to S5 */
static void chipset_pre_init(void)
{
diff --git a/board/coral/board.h b/board/coral/board.h
index 3706cd4ae8..d10081f0a0 100644
--- a/board/coral/board.h
+++ b/board/coral/board.h
@@ -120,7 +120,6 @@
#define CONFIG_ADC
#define CONFIG_BOARD_VERSION
#define CONFIG_BOARD_SPECIFIC_VERSION
-#define CONFIG_BUTTON_COUNT 2
#define CONFIG_EXTPOWER_GPIO
#undef CONFIG_EXTPOWER_DEBOUNCE_MS
#define CONFIG_EXTPOWER_DEBOUNCE_MS 1000
@@ -148,6 +147,9 @@
#define CONFIG_SCI_GPIO GPIO_PCH_SCI_L
#define CONFIG_UART_HOST 0
#define CONFIG_VBOOT_HASH
+#define CONFIG_VOLUME_BUTTONS
+#define GPIO_VOLUME_DOWN_L GPIO_EC_VOLDN_BTN_ODL
+#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL
#define CONFIG_BACKLIGHT_LID
#define CONFIG_WIRELESS
#define CONFIG_WIRELESS_SUSPEND EC_WIRELESS_SWITCH_WLAN_POWER