[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>
This commit is contained in:
committed by
Paul Mackerras
parent
0f582bc1f2
commit
bb53bb3dcb
@ -388,7 +388,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
|
||||
|
||||
dev->current_state = 4; /* unknown power state */
|
||||
|
||||
if (!strcmp(type, "pci")) {
|
||||
if (!strcmp(type, "pci") || !strcmp(type, "pciex")) {
|
||||
/* a PCI-PCI bridge */
|
||||
dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;
|
||||
dev->rom_base_reg = PCI_ROM_ADDRESS1;
|
||||
|
Reference in New Issue
Block a user