1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2008 Emcraft Systems
4 * Sergei Poselenov <sposelenov@emcraft.com>
6 * Based on MPC8560 ADS and arch/ppc tqm85xx ports
8 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
10 * Copyright 2008 Freescale Semiconductor Inc.
12 * Copyright (c) 2005-2006 DENX Software Engineering
13 * Stefan Roese <sr@denx.de>
15 * Based on original work by
16 * Kumar Gala <kumar.gala@freescale.com>
17 * Copyright 2004 Freescale Semiconductor Inc.
20 #include <linux/stddef.h>
21 #include <linux/kernel.h>
22 #include <linux/pci.h>
23 #include <linux/kdev_t.h>
24 #include <linux/delay.h>
25 #include <linux/seq_file.h>
29 #include <asm/machdep.h>
30 #include <asm/pci-bridge.h>
32 #include <mm/mmu_decl.h>
35 #include <sysdev/fsl_soc.h>
36 #include <sysdev/fsl_pci.h>
39 #include "socrates_fpga_pic.h"
41 static void __init socrates_pic_init(void)
43 struct device_node *np;
45 struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
50 np = of_find_compatible_node(NULL, NULL, "abb,socrates-fpga-pic");
52 printk(KERN_ERR "Could not find socrates-fpga-pic node\n");
55 socrates_fpga_pic_init(np);
60 * Setup the architecture
62 static void __init socrates_setup_arch(void)
65 ppc_md.progress("socrates_setup_arch()", 0);
67 fsl_pci_assign_primary();
70 machine_arch_initcall(socrates, mpc85xx_common_publish_devices);
72 define_machine(socrates) {
74 .compatible = "abb,socrates",
75 .setup_arch = socrates_setup_arch,
76 .init_IRQ = socrates_pic_init,
77 .get_irq = mpic_get_irq,
78 .progress = udbg_progress,