2 * Corenet based SoC DS Setup
4 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
6 * Copyright 2009-2011 Freescale Semiconductor Inc.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/kernel.h>
15 #include <linux/pci.h>
16 #include <linux/kdev_t.h>
17 #include <linux/delay.h>
18 #include <linux/interrupt.h>
21 #include <asm/machdep.h>
22 #include <asm/pci-bridge.h>
23 #include <asm/ppc-pci.h>
24 #include <mm/mmu_decl.h>
29 #include <linux/of_platform.h>
30 #include <sysdev/fsl_soc.h>
31 #include <sysdev/fsl_pci.h>
34 void __init corenet_ds_pic_init(void)
37 unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU |
40 if (ppc_md.get_irq == mpic_get_coreint_irq)
41 flags |= MPIC_ENABLE_COREINT;
43 mpic = mpic_alloc(NULL, 0, flags, 0, 512, " OpenPIC ");
50 * Setup the architecture
52 void __init corenet_ds_setup_arch(void)
58 pr_info("%s board from Freescale Semiconductor\n", ppc_md.name);
61 static const struct of_device_id of_device_ids[] = {
63 .compatible = "simple-bus"
66 .compatible = "fsl,srio",
69 .compatible = "fsl,p4080-pcie",
72 .compatible = "fsl,qoriq-pcie-v2.2",
75 .compatible = "fsl,qoriq-pcie-v2.3",
78 .compatible = "fsl,qoriq-pcie-v2.4",
81 .compatible = "fsl,qoriq-pcie-v3.0",
83 /* The following two are for the Freescale hypervisor */
93 int __init corenet_ds_publish_devices(void)
95 return of_platform_bus_probe(NULL, of_device_ids, NULL);