1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2011 Freescale Semiconductor Inc.
8 #include <linux/stddef.h>
9 #include <linux/kernel.h>
10 #include <linux/pci.h>
11 #include <linux/delay.h>
12 #include <linux/interrupt.h>
13 #include <linux/of_platform.h>
16 #include <asm/machdep.h>
17 #include <asm/pci-bridge.h>
18 #include <mm/mmu_decl.h>
23 #include <sysdev/fsl_soc.h>
24 #include <sysdev/fsl_pci.h>
28 void __init
p1010_rdb_pic_init(void)
30 struct mpic
*mpic
= mpic_alloc(NULL
, 0, MPIC_BIG_ENDIAN
|
41 * Setup the architecture
43 static void __init
p1010_rdb_setup_arch(void)
46 ppc_md
.progress("p1010_rdb_setup_arch()", 0);
48 fsl_pci_assign_primary();
50 printk(KERN_INFO
"P1010 RDB board from Freescale Semiconductor\n");
53 machine_arch_initcall(p1010_rdb
, mpc85xx_common_publish_devices
);
56 * Called very early, device-tree isn't unflattened
58 static int __init
p1010_rdb_probe(void)
60 if (of_machine_is_compatible("fsl,P1010RDB"))
62 if (of_machine_is_compatible("fsl,P1010RDB-PB"))
67 define_machine(p1010_rdb
) {
69 .probe
= p1010_rdb_probe
,
70 .setup_arch
= p1010_rdb_setup_arch
,
71 .init_IRQ
= p1010_rdb_pic_init
,
73 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
74 .pcibios_fixup_phb
= fsl_pcibios_fixup_phb
,
76 .get_irq
= mpic_get_irq
,
77 .calibrate_decr
= generic_calibrate_decr
,
78 .progress
= udbg_progress
,