summaryrefslogtreecommitdiff
path: root/board/wolf
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-12 14:07:25 -0700
committerChromeBot <chrome-bot@google.com>2013-07-17 10:49:48 -0700
commit672057cb7e242574079b05e3028c0e337aa450e5 (patch)
treed5d76796ca1ff024fe3aa4bdcffca5d5cc6d2ae8 /board/wolf
parentd48828757de2274938cf8ec862689c935adaae33 (diff)
downloadchrome-ec-672057cb7e242574079b05e3028c0e337aa450e5.tar.gz
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 <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61780
Diffstat (limited to 'board/wolf')
-rw-r--r--board/wolf/board.h1
-rw-r--r--board/wolf/ec.tasklist2
2 files changed, 2 insertions, 1 deletions
diff --git a/board/wolf/board.h b/board/wolf/board.h
index 98b036afbb..d015cec803 100644
--- a/board/wolf/board.h
+++ b/board/wolf/board.h
@@ -28,6 +28,7 @@
#define CONFIG_LPC
#define CONFIG_PECI
#define CONFIG_POWER_BUTTON
+#define CONFIG_POWER_BUTTON_X86
#define CONFIG_PWM_FAN
#define CONFIG_TEMP_SENSOR
#define CONFIG_USB_PORT_POWER_DUMB
diff --git a/board/wolf/ec.tasklist b/board/wolf/ec.tasklist
index dc735958f0..848b56830c 100644
--- a/board/wolf/ec.tasklist
+++ b/board/wolf/ec.tasklist
@@ -25,5 +25,5 @@
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
- TASK_ALWAYS(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)