4 * Copyright 2011 Freescale Semiconductor Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #include <linux/stddef.h>
13 #include <linux/kernel.h>
14 #include <linux/pci.h>
15 #include <linux/delay.h>
16 #include <linux/interrupt.h>
17 #include <linux/of_platform.h>
20 #include <asm/machdep.h>
21 #include <asm/pci-bridge.h>
22 #include <mm/mmu_decl.h>
27 #include <sysdev/fsl_soc.h>
28 #include <sysdev/fsl_pci.h>
32 void __init
p1010_rdb_pic_init(void)
34 struct mpic
*mpic
= mpic_alloc(NULL
, 0, MPIC_BIG_ENDIAN
|
45 * Setup the architecture
47 static void __init
p1010_rdb_setup_arch(void)
50 ppc_md
.progress("p1010_rdb_setup_arch()", 0);
52 fsl_pci_assign_primary();
54 printk(KERN_INFO
"P1010 RDB board from Freescale Semiconductor\n");
57 machine_arch_initcall(p1010_rdb
, mpc85xx_common_publish_devices
);
58 machine_arch_initcall(p1010_rdb
, swiotlb_setup_bus_notifier
);
61 * Called very early, device-tree isn't unflattened
63 static int __init
p1010_rdb_probe(void)
65 if (of_machine_is_compatible("fsl,P1010RDB"))
67 if (of_machine_is_compatible("fsl,P1010RDB-PB"))
72 define_machine(p1010_rdb
) {
74 .probe
= p1010_rdb_probe
,
75 .setup_arch
= p1010_rdb_setup_arch
,
76 .init_IRQ
= p1010_rdb_pic_init
,
78 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
79 .pcibios_fixup_phb
= fsl_pcibios_fixup_phb
,
81 .get_irq
= mpic_get_irq
,
82 .calibrate_decr
= generic_calibrate_decr
,
83 .progress
= udbg_progress
,