diff options
Diffstat (limited to 'board/reef_it8320')
-rw-r--r-- | board/reef_it8320/board.c | 7 | ||||
-rw-r--r-- | board/reef_it8320/board.h | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/board/reef_it8320/board.c b/board/reef_it8320/board.c index c8eeb2b8ef..3cb1d49afc 100644 --- a/board/reef_it8320/board.c +++ b/board/reef_it8320/board.c @@ -277,13 +277,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/reef_it8320/board.h b/board/reef_it8320/board.h index 0d86f37e4f..0fe238d043 100644 --- a/board/reef_it8320/board.h +++ b/board/reef_it8320/board.h @@ -101,7 +101,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 @@ -121,6 +120,9 @@ #define CONFIG_DPTF_DEVICE_ORIENTATION #define CONFIG_SCI_GPIO GPIO_PCH_SCI_L #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 |