Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[deliverable/linux.git] / arch / powerpc / platforms / 83xx / sbc834x.c
CommitLineData
a43414cc
PG
1/*
2 * arch/powerpc/platforms/83xx/sbc834x.c
3 *
4 * Wind River SBC834x board specific routines
5 *
6 * By Paul Gortmaker (see MAINTAINERS for contact information)
7 *
8 * Based largely on the mpc834x_mds.c support by Kumar Gala.
9 *
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.
14 */
15
16#include <linux/stddef.h>
17#include <linux/kernel.h>
18#include <linux/init.h>
19#include <linux/errno.h>
20#include <linux/reboot.h>
21#include <linux/pci.h>
22#include <linux/kdev_t.h>
23#include <linux/major.h>
24#include <linux/console.h>
25#include <linux/delay.h>
26#include <linux/seq_file.h>
27#include <linux/root_dev.h>
28#include <linux/of_platform.h>
29
60063497 30#include <linux/atomic.h>
a43414cc
PG
31#include <asm/time.h>
32#include <asm/io.h>
33#include <asm/machdep.h>
34#include <asm/ipic.h>
35#include <asm/irq.h>
36#include <asm/prom.h>
37#include <asm/udbg.h>
38#include <sysdev/fsl_soc.h>
76fe1ffc 39#include <sysdev/fsl_pci.h>
a43414cc
PG
40
41#include "mpc83xx.h"
42
43/* ************************************************************************
44 *
45 * Setup the architecture
46 *
47 */
48static void __init sbc834x_setup_arch(void)
49{
a43414cc
PG
50 if (ppc_md.progress)
51 ppc_md.progress("sbc834x_setup_arch()", 0);
52
bede480d 53 mpc83xx_setup_pci();
a43414cc
PG
54}
55
7669d58c 56machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices);
a43414cc
PG
57
58/*
59 * Called very early, MMU is off, device-tree isn't unflattened
60 */
61static int __init sbc834x_probe(void)
62{
56571384 63 return of_machine_is_compatible("SBC834xE");
a43414cc
PG
64}
65
66define_machine(sbc834x) {
dabc7840 67 .name = "SBC834xE",
a43414cc
PG
68 .probe = sbc834x_probe,
69 .setup_arch = sbc834x_setup_arch,
d4fb5ebd 70 .init_IRQ = mpc83xx_ipic_init_IRQ,
a43414cc
PG
71 .get_irq = ipic_get_irq,
72 .restart = mpc83xx_restart,
73 .time_init = mpc83xx_time_init,
74 .calibrate_decr = generic_calibrate_decr,
75 .progress = udbg_progress,
76};
This page took 0.594054 seconds and 5 git commands to generate.