summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-10-05 15:55:21 +0100
committerMatthew Garrett <mjg@redhat.com>2010-10-21 10:10:44 -0400
commit260586d2b444909380137de6c6423e5b44edf4db (patch)
tree612411c307af79ff2bc1f1545b76c1ad5a8c9dc8 /arch/x86
parentbd9fc3a72345807683a009c1e19dc0d517f0f4e7 (diff)
downloadop-kernel-dev-260586d2b444909380137de6c6423e5b44edf4db.zip
op-kernel-dev-260586d2b444909380137de6c6423e5b44edf4db.tar.gz
Add OLPC XO-1 rfkill driver
Add a software rfkill switch for the WLAN interface in the OLPC XO-1 laptop. It uses the OLPC embedded controller to cut/restore power to the Marvell WLAN chip on the motherboard. Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/olpc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/olpc.h b/arch/x86/include/asm/olpc.h
index 101229b..42a978c 100644
--- a/arch/x86/include/asm/olpc.h
+++ b/arch/x86/include/asm/olpc.h
@@ -89,6 +89,8 @@ 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
/* SCI source values */
OpenPOWER on IntegriCloud