2 * MPC8536 DS Board Setup
4 * Copyright 2008 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/kdev_t.h>
16 #include <linux/delay.h>
17 #include <linux/seq_file.h>
18 #include <linux/interrupt.h>
19 #include <linux/of_platform.h>
22 #include <asm/machdep.h>
23 #include <asm/pci-bridge.h>
24 #include <mm/mmu_decl.h>
28 #include <asm/swiotlb.h>
30 #include <sysdev/fsl_soc.h>
31 #include <sysdev/fsl_pci.h>
35 void __init
mpc8536_ds_pic_init(void)
37 struct mpic
*mpic
= mpic_alloc(NULL
, 0, MPIC_BIG_ENDIAN
,
44 * Setup the architecture
46 static void __init
mpc8536_ds_setup_arch(void)
49 ppc_md
.progress("mpc8536_ds_setup_arch()", 0);
51 fsl_pci_assign_primary();
55 printk("MPC8536 DS board from Freescale Semiconductor\n");
58 machine_arch_initcall(mpc8536_ds
, mpc85xx_common_publish_devices
);
60 machine_arch_initcall(mpc8536_ds
, swiotlb_setup_bus_notifier
);
63 * Called very early, device-tree isn't unflattened
65 static int __init
mpc8536_ds_probe(void)
67 return of_machine_is_compatible("fsl,mpc8536ds");
70 define_machine(mpc8536_ds
) {
72 .probe
= mpc8536_ds_probe
,
73 .setup_arch
= mpc8536_ds_setup_arch
,
74 .init_IRQ
= mpc8536_ds_pic_init
,
76 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
77 .pcibios_fixup_phb
= fsl_pcibios_fixup_phb
,
79 .get_irq
= mpic_get_irq
,
80 .calibrate_decr
= generic_calibrate_decr
,
81 .progress
= udbg_progress
,