staging:iio:Documentation gyro -> anglvel updates in attribute names
[zen-stable.git] / arch / powerpc / platforms / 512x / mpc5121_generic.c
blob926731f1ff01b587901cf88feab77161b4194849
1 /*
2 * Copyright (C) 2007,2008 Freescale Semiconductor, Inc. All rights reserved.
4 * Author: John Rigby, <jrigby@freescale.com>
6 * Description:
7 * MPC5121 SoC 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>
17 #include <linux/of_platform.h>
19 #include <asm/machdep.h>
20 #include <asm/ipic.h>
21 #include <asm/prom.h>
22 #include <asm/time.h>
24 #include "mpc512x.h"
27 * list of supported boards
29 static const char *board[] __initdata = {
30 "prt,prtlvt",
31 NULL
35 * Called very early, MMU is off, device-tree isn't unflattened
37 static int __init mpc5121_generic_probe(void)
39 return of_flat_dt_match(of_get_flat_dt_root(), board);
42 define_machine(mpc5121_generic) {
43 .name = "MPC5121 generic",
44 .probe = mpc5121_generic_probe,
45 .init = mpc512x_init,
46 .init_early = mpc512x_init_diu,
47 .setup_arch = mpc512x_setup_diu,
48 .init_IRQ = mpc512x_init_IRQ,
49 .get_irq = ipic_get_irq,
50 .calibrate_decr = generic_calibrate_decr,
51 .restart = mpc512x_restart,