summaryrefslogtreecommitdiff
path: root/board/asurada/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/asurada/board.c')
-rw-r--r--board/asurada/board.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index bc1f3f309f..9b773c6953 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -8,6 +8,7 @@
#include "adc_chip.h"
#include "button.h"
#include "charger.h"
+#include "chipset.h"
#include "common.h"
#include "console.h"
#include "chip/it83xx/intc.h"
@@ -18,6 +19,7 @@
#include "i2c.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
+#include "power.h"
#include "power_button.h"
#include "pwm.h"
#include "pwm_chip.h"
@@ -53,6 +55,16 @@ const enum gpio_signal hibernate_wake_pins[] = {
};
const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
+/* power signal list. Must match order of enum power_signal. */
+const struct power_signal_info power_signal_list[] = {
+ {GPIO_PMIC_EC_PWRGD, POWER_SIGNAL_ACTIVE_HIGH, "PMIC_PWR_GOOD"},
+ {GPIO_AP_IN_SLEEP_L, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_S3_L"},
+ {GPIO_AP_EC_WATCHDOG_L,
+ POWER_SIGNAL_ACTIVE_LOW | POWER_SIGNAL_DISABLE_AT_BOOT,
+ "AP_WDT_ASSERTED"},
+};
+BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
+
/* Initialize board. */
static void board_init(void)
{