[PATCH 2/4] Added mainboard IDs for various versions of OLPC XO-1.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Raymond Lai <airwave@cinderella.(none)>

These mainboard IDs are from OLPC's kernel source tree.

Signed-off-by: Raymond Lai <airwave209gt@xxxxxxxxx>
---
 arch/x86/include/asm/olpc.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/x86/include/asm/olpc.h b/arch/x86/include/asm/olpc.h
index 834a302..836f7b2 100644
--- a/arch/x86/include/asm/olpc.h
+++ b/arch/x86/include/asm/olpc.h
@@ -15,6 +15,20 @@ struct olpc_platform_t {
 #define OLPC_F_DCON		0x02
 #define OLPC_F_VSA		0x04
 
+/*
+ * for XO-1, the revision in hex is equivalent to the common name
+ * for the revision -- i.e. board B3 has revision 0xb3.  with the
+ * introduction of XO 1.5 boards, the EC will no longer increment
+ * the first nibble of the ID, since otherwise we'll run out of
+ * namespace too soon.  so we'll start mapping with macros from
+ * 0xd0 onwards.
+ */
+#define BOARD_XO_1_B1	0xb1
+#define BOARD_XO_1_B2	0xb2
+#define BOARD_XO_1_B3	0xb3
+#define BOARD_XO_1_C1	0xc1
+#define BOARD_XO_1_C2	0xc2
+
 #ifdef CONFIG_OLPC
 
 extern struct olpc_platform_t olpc_platform_info;
-- 
1.6.3.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux