From 672057cb7e242574079b05e3028c0e337aa450e5 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 12 Jul 2013 14:07:25 -0700 Subject: Split x86 power button logic out of switch.c Power button logic is common across all platforms and is not LM4-specific, so move it to its own module. Switch.c will eventually be moving to common/ and will common across all platforms (not just x86), and splitting out the x86 power button logic is needed before that too. BUG=chrome-os-partner:18343 BRANCH=none TEST=manual 1) power on system with both lid and power button. 2) power+refresh -> reboots 3) power+refresh+esc -> recovery mode 4) power+refresh+downarrow -> reboots, AP stays off 5) toggling recovery GPIO via servo should generate SW debug output showing bit 0x10 toggling Change-Id: I07714e2c035dceece66f90407983397d2697e7d5 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/61780 --- chip/lm4/config_chip.h | 1 + 1 file changed, 1 insertion(+) (limited to 'chip/lm4/config_chip.h') diff --git a/chip/lm4/config_chip.h b/chip/lm4/config_chip.h index 849f68087d..1c7fdfb48b 100644 --- a/chip/lm4/config_chip.h +++ b/chip/lm4/config_chip.h @@ -104,6 +104,7 @@ #define CONFIG_FMAP #define CONFIG_FPU #define CONFIG_I2C +#define CONFIG_SWITCH #define CONFIG_WATCHDOG /* Compile for running from RAM instead of flash */ -- cgit v1.2.1