From 45bc5c1a2135eaae05978d371cff17fb810b9951 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 23 Apr 2013 17:02:07 -0700 Subject: Split out power button code from switch.c The power button code is platform-independent. This change splits the code out of the LM4 switch.c module so that a subseqent change to STM32 platforms can start using it. BUG=chrome-os-partner:18945 BRANCH=none TEST=manual 1. Power+refresh+esc goes to recovery mode, 2. Press power button at recovery screen turns off. 3. With system off, power button turns system on. 4. Press power button for a second; screen locks. 5. Press power button while typing; blocks keystrokes while it's pressed. 6. Hold power button down for 8 sec; system forced to shutdown. 7. From EC console, with system on: hostevent clear hostevent -> event 0x04 is clear press power button hostevent -> event 0x04 is set 8. From EC console, with system off: powerbtn -> system turns on powerbtn 5000 -> system turns off, just like power button was held for 5 sec Change-Id: If2a9b02514a201e1d03c857d128e2ccab51a16ef Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/49217 Reviewed-by: Bill Richardson --- include/keyboard_8042.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/keyboard_8042.h') diff --git a/include/keyboard_8042.h b/include/keyboard_8042.h index a0d3389d11..b0a247893f 100644 --- a/include/keyboard_8042.h +++ b/include/keyboard_8042.h @@ -27,9 +27,4 @@ void keyboard_host_write(int data, int is_cmd); */ void keyboard_state_changed(int row, int col, int is_pressed); -/** - * Send make/break code of power button to host. - */ -void keyboard_set_power_button(int pressed); - #endif /* __CROS_EC_KEYBOARD_8042_H */ -- cgit v1.2.1