diff options
-rw-r--r-- | arch/x86/kernel/olpc-pm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/olpc-pm.c b/arch/x86/kernel/olpc-pm.c index 9532a5b16b60..4c758f7e6e02 100644 --- a/arch/x86/kernel/olpc-pm.c +++ b/arch/x86/kernel/olpc-pm.c @@ -373,6 +373,15 @@ void olpc_fixup_wakeup(void) /* tell the wireless module to restart USB communication */ olpc_ec_cmd(0x24, NULL, 0, NULL, 0); } + + /* + * Re-enable all LID events + */ + if (olpc_board_at_least(olpc_board(0xb2))) { + geode_gpio_set(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_EN); + geode_gpio_set(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_EN); + geode_gpio_set(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE); + } } int olpc_fixup_sleep(void) |