Commit 5a013fc7 authored by Matthias Fuchs's avatar Matthias Fuchs Committed by Josh Boyer
Browse files

powerpc/4xx: Allow 4xx PCI bridge to be disabled via device tree



This patch allows the 4xx (conventional) PCI bridge to be disabled
via the device tree. This is needed for 4xx PCI adapter hardware.

Use the PCI node's status property to disable the PCI bridge.

Signed-off-by: default avatarMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Acked-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent fbcc4bac
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -276,6 +276,13 @@ static void __init ppc4xx_probe_pci_bridge(struct device_node *np)
	const int *bus_range;
	int primary = 0;

	/* Check if device is enabled */
	if (!of_device_is_available(np)) {
		printk(KERN_INFO "%s: Port disabled via device-tree\n",
		       np->full_name);
		return;
	}

	/* Fetch config space registers address */
	if (of_address_to_resource(np, 0, &rsrc_cfg)) {
		printk(KERN_ERR "%s: Can't get PCI config register base !",