mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
npcx: gpio: Enable wake GPIO interrupts prior to hibernate
This is necessary after the pending patch to not enable all GPIO interrupts by default. BRANCH=None BUG=chrome-os-partner:56486 TEST=Manual on kevin, run 'hibernate', attach AC and verify wake occurs. Change-Id: I04d2c6edf9fb32b1a6a7e6a5ed4d2c53895e00f0 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/374179 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
@@ -336,8 +336,11 @@ void system_set_gpios_and_wakeup_inputs_hibernate(void)
|
||||
}
|
||||
|
||||
/* Enable wake-up inputs of hibernate_wake_pins array */
|
||||
for (i = 0; i < hibernate_wake_pins_used; i++)
|
||||
for (i = 0; i < hibernate_wake_pins_used; i++) {
|
||||
gpio_reset(hibernate_wake_pins[i]);
|
||||
/* Re-enable interrupt for wake-up inputs */
|
||||
gpio_enable_interrupt(hibernate_wake_pins[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user