OLPC: Add XO-1 suspend/resume support
PATCH v3 1/1 OLPC: Add XO-1 suspend/resume support
Add code needed for basic suspend/resume of the XO-1 laptop.
Signed-off-by Daniel Drake <[email protected]>
--- arch/x86/Kconfig | 2 +- arch/x86/include/asm/olpc.h | 9 ++- arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/olpc-xo1-wakeup.S | 133 +++++++++++++++++++++++++++++++++++++ arch/x86/kernel/olpc-xo1.c | 79 ++++++++++++++++++++++ 5 files changed, 220 insertions(+), 5 deletions(-) create mode 100644 arch/x86/kernel/olpc-xo1-wakeup.S
v2: add dependency on CONFIG_PM_SLEEP (thanks Randy), avoid requirement on hacking swsusp_pg_dir by switching to initial_page_table
v3: rebase to fix conflict in olpc.h with the now-merged XO-1 rfkill driver
arch/x86/Kconfig +1 -1
@@ -2038,7 +2038,7 @@ config OLPC config OLPC_XO1 tristate "OLPC XO-1 support" - depends on OLPC && PCI + depends on OLPC && PCI && PM_SLEEP ---help--- Add support for non-essential features of the OLPC XO-1 laptop.
arch/x86/include/asm/olpc.h +6 -3
@@ -88,9 +88,12 @@ extern int olpc_ec_mask_unset(uint8_t bits);/* EC commands */ -#define EC_FIRMWARE_REV 0x08 -#define EC_WLAN_ENTER_RESET 0x35 -#define EC_WLAN_LEAVE_RESET 0x25 +#define EC_FIRMWARE_REV 0x08 +#define EC_WAKE_UP_WLAN 0x24 +#define EC_WLAN_LEAVE_RESET 0x25 +#define EC_SET_SCI_INHIBIT 0x32 +#define EC_SET_SCI_INHIBIT_RELEASE 0x34 +#define EC_WLAN_ENTER_RESET 0x35/* SCI source values */
arch/x86/kernel/Makefile +1 -1
@@ -108,7 +108,7 @@ obj-$(CONFIG_SCx200) += scx200.o scx200-y += scx200_32.o obj-$(CONFIG_OLPC) += olpc.o -obj-$(CONFIG_OLPC_XO1) += olpc-xo1.o +obj-$(CONFIG_OLPC_XO1) += olpc-xo1.o olpc-xo1-wakeup.o obj-$(CONFIG_OLPC_OPENFIRMWARE) += olpc_ofw.o obj-$(CONFIG_X86_MRST) += mrst.o
arch/x86/kernel/olpc-xo1-wakeup.S new file +133 -0
133 lines not on this page · raw message
arch/x86/kernel/olpc-xo1.c +79 -0
103 lines not on this page · raw message
Signature · 1 line
1.7.2.3