powerpc: wire up preadv2 and pwritev2 syscalls
[linux/fpc-iii.git] / arch / powerpc / platforms / 83xx / mpc836x_rdk.c
blob4cd7153a6c889068b2afe99123f53b85d3016d82
1 /*
2 * MPC8360E-RDK board file.
4 * Copyright (c) 2006 Freescale Semiconductor, Inc.
5 * Copyright (c) 2007-2008 MontaVista Software, Inc.
7 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
15 #include <linux/kernel.h>
16 #include <linux/pci.h>
17 #include <linux/of_platform.h>
18 #include <linux/io.h>
19 #include <asm/prom.h>
20 #include <asm/time.h>
21 #include <asm/ipic.h>
22 #include <asm/udbg.h>
23 #include <soc/fsl/qe/qe.h>
24 #include <soc/fsl/qe/qe_ic.h>
25 #include <sysdev/fsl_soc.h>
26 #include <sysdev/fsl_pci.h>
28 #include "mpc83xx.h"
30 machine_device_initcall(mpc836x_rdk, mpc83xx_declare_of_platform_devices);
32 static void __init mpc836x_rdk_setup_arch(void)
34 if (ppc_md.progress)
35 ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
37 mpc83xx_setup_pci();
41 * Called very early, MMU is off, device-tree isn't unflattened.
43 static int __init mpc836x_rdk_probe(void)
45 unsigned long root = of_get_flat_dt_root();
47 return of_flat_dt_is_compatible(root, "fsl,mpc8360rdk");
50 define_machine(mpc836x_rdk) {
51 .name = "MPC836x RDK",
52 .probe = mpc836x_rdk_probe,
53 .setup_arch = mpc836x_rdk_setup_arch,
54 .init_IRQ = mpc83xx_ipic_and_qe_init_IRQ,
55 .get_irq = ipic_get_irq,
56 .restart = mpc83xx_restart,
57 .time_init = mpc83xx_time_init,
58 .calibrate_decr = generic_calibrate_decr,
59 .progress = udbg_progress,