|
@@ -12,12 +12,14 @@
|
|
|
#include <linux/stddef.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/of_platform.h>
|
|
|
+#include <linux/pci.h>
|
|
|
|
|
|
#include <asm/io.h>
|
|
|
#include <asm/hw_irq.h>
|
|
|
#include <asm/ipic.h>
|
|
|
#include <asm/qe_ic.h>
|
|
|
#include <sysdev/fsl_soc.h>
|
|
|
+#include <sysdev/fsl_pci.h>
|
|
|
|
|
|
#include "mpc83xx.h"
|
|
|
|
|
@@ -128,3 +130,15 @@ int __init mpc83xx_declare_of_platform_devices(void)
|
|
|
of_platform_bus_probe(NULL, of_bus_ids, NULL);
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+#ifdef CONFIG_PCI
|
|
|
+void __init mpc83xx_setup_pci(void)
|
|
|
+{
|
|
|
+ struct device_node *np;
|
|
|
+
|
|
|
+ for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
|
|
|
+ mpc83xx_add_bridge(np);
|
|
|
+ for_each_compatible_node(np, "pci", "fsl,mpc8314-pcie")
|
|
|
+ mpc83xx_add_bridge(np);
|
|
|
+}
|
|
|
+#endif
|