x86: Make the vdso2c compiler use the host architecture headers
[linux/fpc-iii.git] / arch / arm / mach-sunxi / sunxi.c
blob95dca8c2c9edcd5a72276dd05ab8572c7dd7bd9e
1 /*
2 * Device Tree support for Allwinner A1X SoCs
4 * Copyright (C) 2012 Maxime Ripard
6 * Maxime Ripard <maxime.ripard@free-electrons.com>
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
13 #include <linux/clk-provider.h>
14 #include <linux/clocksource.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
18 #include <asm/mach/arch.h>
20 static const char * const sunxi_board_dt_compat[] = {
21 "allwinner,sun4i-a10",
22 "allwinner,sun5i-a10s",
23 "allwinner,sun5i-a13",
24 "allwinner,sun5i-r8",
25 NULL,
28 DT_MACHINE_START(SUNXI_DT, "Allwinner sun4i/sun5i Families")
29 .dt_compat = sunxi_board_dt_compat,
30 MACHINE_END
32 static const char * const sun6i_board_dt_compat[] = {
33 "allwinner,sun6i-a31",
34 "allwinner,sun6i-a31s",
35 NULL,
38 extern void __init sun6i_reset_init(void);
39 static void __init sun6i_timer_init(void)
41 of_clk_init(NULL);
42 if (IS_ENABLED(CONFIG_RESET_CONTROLLER))
43 sun6i_reset_init();
44 clocksource_probe();
47 DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
48 .init_time = sun6i_timer_init,
49 .dt_compat = sun6i_board_dt_compat,
50 MACHINE_END
52 static const char * const sun7i_board_dt_compat[] = {
53 "allwinner,sun7i-a20",
54 NULL,
57 DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")
58 .dt_compat = sun7i_board_dt_compat,
59 MACHINE_END
61 static const char * const sun8i_board_dt_compat[] = {
62 "allwinner,sun8i-a23",
63 "allwinner,sun8i-a33",
64 "allwinner,sun8i-a83t",
65 "allwinner,sun8i-h3",
66 NULL,
69 DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family")
70 .init_time = sun6i_timer_init,
71 .dt_compat = sun8i_board_dt_compat,
72 MACHINE_END
74 static const char * const sun9i_board_dt_compat[] = {
75 "allwinner,sun9i-a80",
76 NULL,
79 DT_MACHINE_START(SUN9I_DT, "Allwinner sun9i Family")
80 .dt_compat = sun9i_board_dt_compat,
81 MACHINE_END