2 * Copyright (c) 2008 Emcraft Systems
5 * Based on MPC8560 ADS and arch/ppc tqm85xx ports
7 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
9 * Copyright 2008 Freescale Semiconductor Inc.
11 * Copyright (c) 2005-2006 DENX Software Engineering
14 * Based on original work by
16 * Copyright 2004 Freescale Semiconductor Inc.
18 * This program is free software; you can redistribute it and/or modify it
19 * under the terms of the GNU General Public License as published by the
20 * Free Software Foundation; either version 2 of the License, or (at your
21 * option) any later version.
24 #include <linux/stddef.h>
25 #include <linux/kernel.h>
26 #include <linux/pci.h>
27 #include <linux/kdev_t.h>
28 #include <linux/delay.h>
29 #include <linux/seq_file.h>
30 #include <linux/of_platform.h>
33 #include <asm/machdep.h>
34 #include <asm/pci-bridge.h>
37 #include <mm/mmu_decl.h>
40 #include <sysdev/fsl_soc.h>
41 #include <sysdev/fsl_pci.h>
44 #include "socrates_fpga_pic.h"
46 static void __init socrates_pic_init(void)
48 struct device_node *np;
50 struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
55 np = of_find_compatible_node(NULL, NULL, "abb,socrates-fpga-pic");
57 printk(KERN_ERR "Could not find socrates-fpga-pic node\n");
60 socrates_fpga_pic_init(np);
65 * Setup the architecture
67 static void __init socrates_setup_arch(void)
70 ppc_md.progress("socrates_setup_arch()", 0);
72 fsl_pci_assign_primary();
75 machine_arch_initcall(socrates, mpc85xx_common_publish_devices);
78 * Called very early, device-tree isn't unflattened
80 static int __init socrates_probe(void)
82 if (of_machine_is_compatible("abb,socrates"))
88 define_machine(socrates) {
90 .probe = socrates_probe,
91 .setup_arch = socrates_setup_arch,
92 .init_IRQ = socrates_pic_init,
93 .get_irq = mpic_get_irq,
94 .calibrate_decr = generic_calibrate_decr,
95 .progress = udbg_progress,