2 * Copyright (C) 2007, 2008 Freescale Semiconductor, Inc. All rights reserved.
4 * Author: John Rigby, <jrigby@freescale.com>, Thur Mar 29 2007
7 * MPC5121 ADS board setup
9 * This is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
16 #include <linux/kernel.h>
18 #include <linux/of_platform.h>
20 #include <asm/machdep.h>
26 #include "mpc5121_ads.h"
28 static void __init mpc5121_ads_setup_arch(void)
30 printk(KERN_INFO "MPC5121 ADS board from Freescale Semiconductor\n");
32 * cpld regs are needed early
34 mpc5121_ads_cpld_map();
37 static void __init mpc5121_ads_init_IRQ(void)
40 mpc5121_ads_cpld_pic_init();
44 * Called very early, MMU is off, device-tree isn't unflattened
46 static int __init mpc5121_ads_probe(void)
48 unsigned long root = of_get_flat_dt_root();
50 return of_flat_dt_is_compatible(root, "fsl,mpc5121ads");
53 define_machine(mpc5121_ads) {
54 .name = "MPC5121 ADS",
55 .probe = mpc5121_ads_probe,
56 .setup_arch = mpc5121_ads_setup_arch,
57 .init = mpc512x_declare_of_platform_devices,
58 .init_IRQ = mpc5121_ads_init_IRQ,
59 .get_irq = ipic_get_irq,
60 .calibrate_decr = generic_calibrate_decr,