ARM: pxa: add pxa25x device-tree support
[cascardo/linux.git] / arch / arm / mach-pxa / pxa-dt.c
1 /*
2  *  linux/arch/arm/mach-pxa/pxa-dt.c
3  *
4  *  Copyright (C) 2012 Daniel Mack
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License version 2 as
8  *  publishhed by the Free Software Foundation.
9  */
10
11 #include <linux/irq.h>
12 #include <linux/irqdomain.h>
13 #include <linux/of_irq.h>
14 #include <linux/of_platform.h>
15 #include <asm/mach/arch.h>
16 #include <asm/mach/time.h>
17 #include <mach/irqs.h>
18
19 #include "generic.h"
20
21 #ifdef CONFIG_PXA25x
22 static const char * const pxa25x_dt_board_compat[] __initconst = {
23         "marvell,pxa250",
24         NULL,
25 };
26
27 DT_MACHINE_START(PXA25X_DT, "Marvell PXA25x (Device Tree Support)")
28         .map_io         = pxa25x_map_io,
29         .init_irq       = pxa25x_dt_init_irq,
30         .handle_irq     = pxa25x_handle_irq,
31         .restart        = pxa_restart,
32         .dt_compat      = pxa25x_dt_board_compat,
33 MACHINE_END
34 #endif
35
36 #ifdef CONFIG_PXA27x
37 static const char * const pxa27x_dt_board_compat[] __initconst = {
38         "marvell,pxa270",
39         NULL,
40 };
41
42 DT_MACHINE_START(PXA27X_DT, "Marvell PXA27x (Device Tree Support)")
43         .map_io         = pxa27x_map_io,
44         .init_irq       = pxa27x_dt_init_irq,
45         .handle_irq     = pxa27x_handle_irq,
46         .restart        = pxa_restart,
47         .dt_compat      = pxa27x_dt_board_compat,
48 MACHINE_END
49 #endif
50
51 #ifdef CONFIG_PXA3xx
52 static const char *const pxa3xx_dt_board_compat[] __initconst = {
53         "marvell,pxa300",
54         "marvell,pxa310",
55         "marvell,pxa320",
56         NULL,
57 };
58
59 DT_MACHINE_START(PXA_DT, "Marvell PXA3xx (Device Tree Support)")
60         .map_io         = pxa3xx_map_io,
61         .init_irq       = pxa3xx_dt_init_irq,
62         .handle_irq     = pxa3xx_handle_irq,
63         .restart        = pxa_restart,
64         .dt_compat      = pxa3xx_dt_board_compat,
65 MACHINE_END
66 #endif