2 * arch/powerpc/platforms/83xx/mpc837x_mds.c
4 * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
6 * MPC837x MDS board specific routines
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/pci.h>
16 #include <linux/of_platform.h>
26 unsigned long isa_io_base = 0;
27 unsigned long isa_mem_base = 0;
30 /* ************************************************************************
32 * Setup the architecture
35 static void __init mpc837x_mds_setup_arch(void)
38 struct device_node *np;
42 ppc_md.progress("mpc837x_mds_setup_arch()", 0);
45 for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
46 mpc83xx_add_bridge(np);
50 static struct of_device_id mpc837x_ids[] = {
52 { .compatible = "soc", },
56 static int __init mpc837x_declare_of_platform_devices(void)
58 if (!machine_is(mpc837x_mds))
61 /* Publish of_device */
62 of_platform_bus_probe(NULL, mpc837x_ids, NULL);
66 device_initcall(mpc837x_declare_of_platform_devices);
68 static void __init mpc837x_mds_init_IRQ(void)
70 struct device_node *np;
72 np = of_find_compatible_node(NULL, NULL, "fsl,ipic");
78 /* Initialize the default interrupt mapping priorities,
79 * in case the boot rom changed something on us.
81 ipic_set_default_priority();
85 * Called very early, MMU is off, device-tree isn't unflattened
87 static int __init mpc837x_mds_probe(void)
89 unsigned long root = of_get_flat_dt_root();
91 return of_flat_dt_is_compatible(root, "fsl,mpc837xmds");
94 define_machine(mpc837x_mds) {
95 .name = "MPC837x MDS",
96 .probe = mpc837x_mds_probe,
97 .setup_arch = mpc837x_mds_setup_arch,
98 .init_IRQ = mpc837x_mds_init_IRQ,
99 .get_irq = ipic_get_irq,
100 .restart = mpc83xx_restart,
101 .time_init = mpc83xx_time_init,
102 .calibrate_decr = generic_calibrate_decr,
103 .progress = udbg_progress,