xref: /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/pxa-dt.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *  linux/arch/arm/mach-pxa/pxa-dt.c
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Copyright (C) 2012 Daniel Mack
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #include <linux/irq.h>
9*4882a593Smuzhiyun #include <linux/irqdomain.h>
10*4882a593Smuzhiyun #include <linux/of_irq.h>
11*4882a593Smuzhiyun #include <linux/of_platform.h>
12*4882a593Smuzhiyun #include <asm/mach/arch.h>
13*4882a593Smuzhiyun #include <asm/mach/time.h>
14*4882a593Smuzhiyun #include <mach/irqs.h>
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #include "generic.h"
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #ifdef CONFIG_PXA25x
19*4882a593Smuzhiyun static const char * const pxa25x_dt_board_compat[] __initconst = {
20*4882a593Smuzhiyun 	"marvell,pxa250",
21*4882a593Smuzhiyun 	NULL,
22*4882a593Smuzhiyun };
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun DT_MACHINE_START(PXA25X_DT, "Marvell PXA25x (Device Tree Support)")
25*4882a593Smuzhiyun 	.map_io		= pxa25x_map_io,
26*4882a593Smuzhiyun 	.restart	= pxa_restart,
27*4882a593Smuzhiyun 	.dt_compat	= pxa25x_dt_board_compat,
28*4882a593Smuzhiyun MACHINE_END
29*4882a593Smuzhiyun #endif
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #ifdef CONFIG_PXA27x
32*4882a593Smuzhiyun static const char * const pxa27x_dt_board_compat[] __initconst = {
33*4882a593Smuzhiyun 	"marvell,pxa270",
34*4882a593Smuzhiyun 	NULL,
35*4882a593Smuzhiyun };
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun DT_MACHINE_START(PXA27X_DT, "Marvell PXA27x (Device Tree Support)")
38*4882a593Smuzhiyun 	.map_io		= pxa27x_map_io,
39*4882a593Smuzhiyun 	.restart	= pxa_restart,
40*4882a593Smuzhiyun 	.dt_compat	= pxa27x_dt_board_compat,
41*4882a593Smuzhiyun MACHINE_END
42*4882a593Smuzhiyun #endif
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun #ifdef CONFIG_PXA3xx
45*4882a593Smuzhiyun static const char *const pxa3xx_dt_board_compat[] __initconst = {
46*4882a593Smuzhiyun 	"marvell,pxa300",
47*4882a593Smuzhiyun 	"marvell,pxa310",
48*4882a593Smuzhiyun 	"marvell,pxa320",
49*4882a593Smuzhiyun 	NULL,
50*4882a593Smuzhiyun };
51*4882a593Smuzhiyun 
52*4882a593Smuzhiyun DT_MACHINE_START(PXA_DT, "Marvell PXA3xx (Device Tree Support)")
53*4882a593Smuzhiyun 	.map_io		= pxa3xx_map_io,
54*4882a593Smuzhiyun 	.restart	= pxa_restart,
55*4882a593Smuzhiyun 	.dt_compat	= pxa3xx_dt_board_compat,
56*4882a593Smuzhiyun MACHINE_END
57*4882a593Smuzhiyun #endif
58