Skip to content

Commit

Permalink
PCI: OLPC: Only enable PCI configuration type override on XO-1
Browse files Browse the repository at this point in the history
This configuration type override is for XO-1 only and must not happen
on XO-1.5.

Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Daniel Drake authored and Jesse Barnes committed Oct 15, 2010
1 parent 66db60e commit 80e7b19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ config PCI_GODIRECT
bool "Direct"

config PCI_GOOLPC
bool "OLPC"
bool "OLPC XO-1"
depends on OLPC

config PCI_GOANY
Expand Down
6 changes: 4 additions & 2 deletions arch/x86/kernel/olpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/pci/olpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80e7b19

Please sign in to comment.