26 #include <asm/machdep.h>
31 #include <asm/pci-bridge.h>
39 #define BCSR_PCI_CTRL 1
40 #define BCSR_FLASH_NV_POR_CTRL 2
41 #define BCSR_FENET_UART_CTRL 3
42 #define BCSR_PCI_IRQ 4
43 #define BCSR_XIRQ_SELECT 5
44 #define BCSR_XIRQ_ROUTING 6
45 #define BCSR_XIRQ_STATUS 7
46 #define BCSR_XIRQ_STATUS2 8
47 #define BCSR_SW_STAT_LED_CTRL 9
48 #define BCSR_GPIO_IRQ_PAR_CTRL 10
53 { .compatible =
"ibm,plb3", },
54 { .compatible =
"ibm,opb", },
55 { .compatible =
"ibm,ebc", },
59 static int __init ep405_device_probe(
void)
61 of_platform_bus_probe(
NULL, ep405_of_bus,
NULL);
67 static void __init ep405_init_bcsr(
void)
69 const u8 *irq_routing;
74 if (bcsr_node ==
NULL) {
79 if (bcsr_regs ==
NULL) {
86 if (irq_routing ==
NULL)
88 for (i = 0; i < 16; i++) {
98 static void __init ep405_setup_arch(
void)
103 pci_set_flags(PCI_REASSIGN_ALL_RSRC);
106 static int __init ep405_probe(
void)
108 unsigned long root = of_get_flat_dt_root();
110 if (!of_flat_dt_is_compatible(root,
"ep405"))
118 .probe = ep405_probe,
119 .setup_arch = ep405_setup_arch,