diff options
author | Daniel Drake <dsd@laptop.org> | 2010-09-23 12:28:04 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-09-23 14:14:18 -0400 |
commit | 76fb657017588a0912f0d1d140cb807446e4ef05 (patch) | |
tree | 7bd59420c34c78a7581e8bdbfb870fdb3e47eb50 | |
parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) |
x86, olpc: Only enable PCI configuration type override on XO-1
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>
-rw-r--r-- | arch/x86/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86/kernel/olpc.c | 6 | ||||
-rw-r--r-- | arch/x86/pci/olpc.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index cea0cd9a316f..0ed4c9bfcd13 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -1900,7 +1900,7 @@ config PCI_GODIRECT | |||
1900 | bool "Direct" | 1900 | bool "Direct" |
1901 | 1901 | ||
1902 | config PCI_GOOLPC | 1902 | config PCI_GOOLPC |
1903 | bool "OLPC" | 1903 | bool "OLPC XO-1" |
1904 | depends on OLPC | 1904 | depends on OLPC |
1905 | 1905 | ||
1906 | config PCI_GOANY | 1906 | config PCI_GOANY |
diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c index 0e0cdde519be..635888cf050d 100644 --- a/arch/x86/kernel/olpc.c +++ b/arch/x86/kernel/olpc.c | |||
@@ -242,8 +242,10 @@ static int __init olpc_init(void) | |||
242 | (unsigned char *) &olpc_platform_info.ecver, 1); | 242 | (unsigned char *) &olpc_platform_info.ecver, 1); |
243 | 243 | ||
244 | #ifdef CONFIG_PCI_OLPC | 244 | #ifdef CONFIG_PCI_OLPC |
245 | /* If the VSA exists let it emulate PCI, if not emulate in kernel */ | 245 | /* If the VSA exists let it emulate PCI, if not emulate in kernel. |
246 | if (!cs5535_has_vsa2()) | 246 | * XO-1 only. */ |
247 | if (olpc_platform_info.boardrev < olpc_board_pre(0xd0) && | ||
248 | !cs5535_has_vsa2()) | ||
247 | x86_init.pci.arch_init = pci_olpc_init; | 249 | x86_init.pci.arch_init = pci_olpc_init; |
248 | #endif | 250 | #endif |
249 | 251 | ||
diff --git a/arch/x86/pci/olpc.c b/arch/x86/pci/olpc.c index b34815408f58..13700ec8e2e4 100644 --- a/arch/x86/pci/olpc.c +++ b/arch/x86/pci/olpc.c | |||
@@ -304,7 +304,7 @@ static struct pci_raw_ops pci_olpc_conf = { | |||
304 | 304 | ||
305 | int __init pci_olpc_init(void) | 305 | int __init pci_olpc_init(void) |
306 | { | 306 | { |
307 | printk(KERN_INFO "PCI: Using configuration type OLPC\n"); | 307 | printk(KERN_INFO "PCI: Using configuration type OLPC XO-1\n"); |
308 | raw_pci_ops = &pci_olpc_conf; | 308 | raw_pci_ops = &pci_olpc_conf; |
309 | is_lx = is_geode_lx(); | 309 | is_lx = is_geode_lx(); |
310 | return 0; | 310 | return 0; |