From ebe586fb7846cfb85af6f46ea8610ac5f993f496 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Tue, 4 Aug 2020 18:12:23 +0800 Subject: asurada: support both rev0/1 AC_PRESENT pin The location of AC_PRESENT has changed in rev 1, to support both rev 0 and 1, the default AC_PRESENT is assigned to a placeholder pin when boot, and re-assign to the correct pin after ADC is accessible. BUG=b:162814191 TEST=See "AC on/off" triggered correctly on both rev 0 and rev 1 device. BRANCH=master Signed-off-by: Ting Shen Change-Id: I2d331b60a4a4420004fea19b0c446b1116816f9b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2336661 Reviewed-by: Nicolas Boichat Commit-Queue: Ting Shen Tested-by: Ting Shen --- board/asurada/board.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/asurada/board.h') diff --git a/board/asurada/board.h b/board/asurada/board.h index 2da6fffb57..13e0f3bcb7 100644 --- a/board/asurada/board.h +++ b/board/asurada/board.h @@ -11,6 +11,7 @@ #define CONFIG_BRINGUP #define CONFIG_CHIPSET_MT8192 #define CONFIG_CMD_POWERINDEBUG +#define CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC #define CONFIG_POWER_COMMON /* Optional features */ @@ -277,5 +278,7 @@ enum temp_sensor_id { void board_reset_pd_mcu(void); int board_get_version(void); +extern enum gpio_signal GPIO_AC_PRESENT; + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ -- cgit v1.2.1