summaryrefslogtreecommitdiff
path: root/board/quackingstick
diff options
context:
space:
mode:
Diffstat (limited to 'board/quackingstick')
-rw-r--r--board/quackingstick/board.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/board/quackingstick/board.c b/board/quackingstick/board.c
index d0552b9f05..749bcdc4fd 100644
--- a/board/quackingstick/board.c
+++ b/board/quackingstick/board.c
@@ -393,13 +393,15 @@ void motion_interrupt(enum gpio_signal signal)
static void board_init(void)
{
/*
- * The rev-1 hardware doesn't have the external pull-up fix for the bug
- * b/177611071. It requires rework to stuff the resistor. For people who
- * has difficulty to do the rework, this is a workaround, which makes
- * the GPIO push-pull, instead of open-drain.
+ * The rev-1 hardware use PP1800_SENSORS as the power of the hall IC,
+ * it cause the LID_OPEN_EC wake EC immediately when EC enter hibernate.
*/
- if (system_get_board_version() == 1)
- gpio_set_flags(GPIO_HIBERNATE_L, GPIO_OUTPUT);
+ if (system_get_board_version() <= 1) {
+ hibernate_wake_pins[0] = GPIO_AC_PRESENT;
+ hibernate_wake_pins[1] = GPIO_POWER_BUTTON_L;
+ hibernate_wake_pins[2] = GPIO_EC_RST_ODL;
+ hibernate_wake_pins_used = 3;
+ }
/* Enable BC1.2 interrupts */
gpio_enable_interrupt(GPIO_USB_C0_BC12_INT_L);
@@ -469,7 +471,7 @@ void board_hibernate(void)
* Board rev 1+ has the hardware fix. Don't need the following
* workaround.
*/
- if (system_get_board_version() >= 1)
+ if (system_get_board_version() > 1)
return;
/*