powerpc/83xx: consolidate init_IRQ functions
[deliverable/linux.git] / arch / powerpc / platforms / 83xx / asp834x.c
CommitLineData
59d13f9d
BD
1/*
2 * arch/powerpc/platforms/83xx/asp834x.c
3 *
4 * Analogue & Micro ASP8347 board specific routines
5 * clone of mpc834x_itx
6 *
7 * Copyright 2008 Codehermit
8 *
9 * Maintainer: Bryan O'Donoghue <bodonoghue@codhermit.ie>
10 *
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
15 */
16
17#include <linux/pci.h>
18#include <linux/of_platform.h>
19
20#include <asm/time.h>
21#include <asm/ipic.h>
22#include <asm/udbg.h>
23
24#include "mpc83xx.h"
25
26/* ************************************************************************
27 *
28 * Setup the architecture
29 *
30 */
31static void __init asp834x_setup_arch(void)
32{
33 if (ppc_md.progress)
34 ppc_md.progress("asp834x_setup_arch()", 0);
35
36 mpc834x_usb_cfg();
37}
38
59d13f9d
BD
39static struct __initdata of_device_id asp8347_ids[] = {
40 { .type = "soc", },
41 { .compatible = "soc", },
42 { .compatible = "simple-bus", },
70b3adbb 43 { .compatible = "gianfar", },
59d13f9d
BD
44 {},
45};
46
47static int __init asp8347_declare_of_platform_devices(void)
48{
49 of_platform_bus_probe(NULL, asp8347_ids, NULL);
50 return 0;
51}
52machine_device_initcall(asp834x, asp8347_declare_of_platform_devices);
53
54/*
55 * Called very early, MMU is off, device-tree isn't unflattened
56 */
57static int __init asp834x_probe(void)
58{
59 unsigned long root = of_get_flat_dt_root();
60 return of_flat_dt_is_compatible(root, "analogue-and-micro,asp8347e");
61}
62
63define_machine(asp834x) {
64 .name = "ASP8347E",
65 .probe = asp834x_probe,
66 .setup_arch = asp834x_setup_arch,
d4fb5ebd 67 .init_IRQ = mpc83xx_ipic_init_IRQ,
59d13f9d
BD
68 .get_irq = ipic_get_irq,
69 .restart = mpc83xx_restart,
70 .time_init = mpc83xx_time_init,
71 .calibrate_decr = generic_calibrate_decr,
72 .progress = udbg_progress,
73};
This page took 0.242622 seconds and 5 git commands to generate.