diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/mec1322_evb/board.c | 1 | ||||
-rw-r--r-- | board/mec1322_evb/board.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/mec1322_evb/board.c b/board/mec1322_evb/board.c index cc9cc6c449..ae854af6ae 100644 --- a/board/mec1322_evb/board.c +++ b/board/mec1322_evb/board.c @@ -22,6 +22,7 @@ const struct gpio_info gpio_list[] = { {"LED3", GPIO_PORT(15), (1 << 6), GPIO_ODR_LOW, NULL}, {"PCH_SMI_L", GPIO_PORT(4), (1 << 4), GPIO_ODR_HIGH, NULL}, {"PCH_WAKE_L", GPIO_PORT(20), (1 << 0), GPIO_ODR_HIGH, NULL}, + {"S1", GPIO_PORT(6), (1 << 3), GPIO_INT_FALLING | GPIO_PULL_UP, NULL}, /* Unimplemented signals which we need to emulate for now */ GPIO_SIGNAL_NOT_IMPLEMENTED("RECOVERY_L"), GPIO_SIGNAL_NOT_IMPLEMENTED("WP"), diff --git a/board/mec1322_evb/board.h b/board/mec1322_evb/board.h index 73a861fa47..57728ca529 100644 --- a/board/mec1322_evb/board.h +++ b/board/mec1322_evb/board.h @@ -13,6 +13,7 @@ #define CONFIG_WATCHDOG_HELP #define CONFIG_FANS 1 #define CONFIG_ADC +#define CONFIG_WAKE_PIN GPIO_S1 /* Modules we want to exclude */ #undef CONFIG_EEPROM @@ -40,6 +41,7 @@ enum gpio_signal { GPIO_LED3, GPIO_PCH_SMI_L, /* SMI output */ GPIO_PCH_WAKE_L, /* PCH wake pin */ + GPIO_S1, /* Switch S1 */ /* * Signals which aren't implemented on MEC1322 eval board but we'll * emulate anyway, to make it more convenient to debug other code. |