From 3ef0e1f8cad0a851b3dbf91802b14af7dd780352 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Tue, 29 Apr 2008 00:59:53 -0700 Subject: x86: olpc: add One Laptop Per Child architecture support This adds support for OLPC XO hardware. Open Firmware on XOs don't contain the VSA, so it is necessary to emulate the PCI BARs in the kernel. This also adds functionality for running EC commands, and a CONFIG_OLPC. A number of OLPC drivers depend upon CONFIG_OLPC. olpc_ec_timeout is a hack to work around Embedded Controller bugs. [akpm@linux-foundation.org: build fix] [akpm@linux-foundation.org: geode_has_vsa build fix] [akpm@linux-foundation.org: olpc_register_battery_callback doesn't exist] Signed-off-by: Andres Salomon Acked-by: Ingo Molnar Cc: Thomas Gleixner Cc: Andi Kleen Cc: Jordan Crouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/x86/pci/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/x86/pci/init.c') diff --git a/arch/x86/pci/init.c b/arch/x86/pci/init.c index 3de9f9ba2da6..0f5f7dd2a620 100644 --- a/arch/x86/pci/init.c +++ b/arch/x86/pci/init.c @@ -13,6 +13,9 @@ static __init int pci_access_init(void) #endif #ifdef CONFIG_PCI_MMCONFIG pci_mmcfg_init(type); +#endif +#ifdef CONFIG_PCI_OLPC + pci_olpc_init(); #endif if (raw_pci_ops) return 0; -- cgit v1.2.3