diff options
author | Jake Moilanen <moilanen@austin.ibm.com> | 2006-06-07 17:05:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-15 05:31:25 -0400 |
commit | bb53bb3dcb12d79efdee3d82bff46a204af377f3 (patch) | |
tree | 3bbe796265817fdf461a5caa0ad6253445460309 /arch/powerpc | |
parent | 0f582bc1f2cccacd613c411fbea55873d17c3429 (diff) |
[POWERPC] Add support for PCI-Express nodes in the device tree
This adds support to recognize the PCIe device_type "pciex" and made
the portdrv buildable.
Signed-off-by: Jake Moilanen <moilanen@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_pci.c | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 7eb0ef2b0036..4ef2478cb84c 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -853,6 +853,8 @@ config 8260_PCI9_IDMA4 | |||
853 | 853 | ||
854 | endchoice | 854 | endchoice |
855 | 855 | ||
856 | source "drivers/pci/pcie/Kconfig" | ||
857 | |||
856 | source "drivers/pci/Kconfig" | 858 | source "drivers/pci/Kconfig" |
857 | 859 | ||
858 | source "drivers/pcmcia/Kconfig" | 860 | source "drivers/pcmcia/Kconfig" |
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 30a4e6a1368a..74dc76653e1b 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -388,7 +388,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node, | |||
388 | 388 | ||
389 | dev->current_state = 4; /* unknown power state */ | 389 | dev->current_state = 4; /* unknown power state */ |
390 | 390 | ||
391 | if (!strcmp(type, "pci")) { | 391 | if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { |
392 | /* a PCI-PCI bridge */ | 392 | /* a PCI-PCI bridge */ |
393 | dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; | 393 | dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; |
394 | dev->rom_base_reg = PCI_ROM_ADDRESS1; | 394 | dev->rom_base_reg = PCI_ROM_ADDRESS1; |
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 57b539a03fa9..6eb7e49b394a 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc/kernel/rtas_pci.c | |||
@@ -313,7 +313,9 @@ unsigned long __init find_and_init_phbs(void) | |||
313 | for (node = of_get_next_child(root, NULL); | 313 | for (node = of_get_next_child(root, NULL); |
314 | node != NULL; | 314 | node != NULL; |
315 | node = of_get_next_child(root, node)) { | 315 | node = of_get_next_child(root, node)) { |
316 | if (node->type == NULL || strcmp(node->type, "pci") != 0) | 316 | |
317 | if (node->type == NULL || (strcmp(node->type, "pci") != 0 && | ||
318 | strcmp(node->type, "pciex") != 0)) | ||
317 | continue; | 319 | continue; |
318 | 320 | ||
319 | phb = pcibios_alloc_controller(node); | 321 | phb = pcibios_alloc_controller(node); |