2 * arch/powerpc/platforms/83xx/mpc8313_rdb.c
4 * Description: MPC8313x RDB board specific routines.
5 * This file is based on mpc834x_sys.c
6 * Author: Lo Wlison <r43300@freescale.com>
8 * Copyright (C) Freescale Semiconductor, Inc. 2006. All rights reserved.
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 2 of the License, or (at your
13 * option) any later version.
16 #include <linux/pci.h>
26 #define DBG(fmt...) udbg_printf(fmt)
32 unsigned long isa_io_base = 0;
33 unsigned long isa_mem_base = 0;
36 /* ************************************************************************
38 * Setup the architecture
41 static void __init mpc8313_rdb_setup_arch(void)
43 struct device_node *np;
46 ppc_md.progress("mpc8313_rdb_setup_arch()", 0);
49 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
52 ppc_md.pci_exclude_device = mpc83xx_exclude_device;
56 void __init mpc8313_rdb_init_IRQ(void)
58 struct device_node *np;
60 np = of_find_node_by_type(NULL, "ipic");
66 /* Initialize the default interrupt mapping priorities,
67 * in case the boot rom changed something on us.
69 ipic_set_default_priority();
73 * Called very early, MMU is off, device-tree isn't unflattened
75 static int __init mpc8313_rdb_probe(void)
77 unsigned long root = of_get_flat_dt_root();
79 return of_flat_dt_is_compatible(root, "MPC8313ERDB");
82 define_machine(mpc8313_rdb) {
83 .name = "MPC8313 RDB",
84 .probe = mpc8313_rdb_probe,
85 .setup_arch = mpc8313_rdb_setup_arch,
86 .init_IRQ = mpc8313_rdb_init_IRQ,
87 .get_irq = ipic_get_irq,
88 .restart = mpc83xx_restart,
89 .time_init = mpc83xx_time_init,
90 .calibrate_decr = generic_calibrate_decr,
91 .progress = udbg_progress,