]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86, olpc: Only enable PCI configuration type override on XO-1
authorDaniel Drake <dsd@laptop.org>
Thu, 23 Sep 2010 16:28:04 +0000 (17:28 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 23 Sep 2010 18:14:18 +0000 (11:14 -0700)
This configuration type override is for XO-1 only and must not happen
on XO-1.5.

Signed-off-by: Daniel Drake <dsd@laptop.org>
LKML-Reference: <20100923162805.0F6549D401B@zog.reactivated.net>
Cc: Andres Solomon <dilinger@queued.net>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/Kconfig
arch/x86/kernel/olpc.c
arch/x86/pci/olpc.c

index cea0cd9a316fb987bfa611a1dffa06cdba1f0332..0ed4c9bfcd13110b7593091f2202ac69fecbb583 100644 (file)
@@ -1900,7 +1900,7 @@ config PCI_GODIRECT
        bool "Direct"
 
 config PCI_GOOLPC
-       bool "OLPC"
+       bool "OLPC XO-1"
        depends on OLPC
 
 config PCI_GOANY
index 0e0cdde519be93a3cda8bab4ba6d8637632171ef..635888cf050d55531a2c39e0987745c0cb561f73 100644 (file)
@@ -242,8 +242,10 @@ static int __init olpc_init(void)
                        (unsigned char *) &olpc_platform_info.ecver, 1);
 
 #ifdef CONFIG_PCI_OLPC
-       /* If the VSA exists let it emulate PCI, if not emulate in kernel */
-       if (!cs5535_has_vsa2())
+       /* If the VSA exists let it emulate PCI, if not emulate in kernel.
+        * XO-1 only. */
+       if (olpc_platform_info.boardrev < olpc_board_pre(0xd0) &&
+                       !cs5535_has_vsa2())
                x86_init.pci.arch_init = pci_olpc_init;
 #endif
 
index b34815408f582bd002854d83c8e5736b6de37b24..13700ec8e2e43587010594fe4e361ac88d29cb85 100644 (file)
@@ -304,7 +304,7 @@ static struct pci_raw_ops pci_olpc_conf = {
 
 int __init pci_olpc_init(void)
 {
-       printk(KERN_INFO "PCI: Using configuration type OLPC\n");
+       printk(KERN_INFO "PCI: Using configuration type OLPC XO-1\n");
        raw_pci_ops = &pci_olpc_conf;
        is_lx = is_geode_lx();
        return 0;