Documentation: devicetree: arm: sort enable-method entries
[deliverable/linux.git] / arch / arm / mach-sunxi / sunxi.c
1 /*
2 * Device Tree support for Allwinner A1X SoCs
3 *
4 * Copyright (C) 2012 Maxime Ripard
5 *
6 * Maxime Ripard <maxime.ripard@free-electrons.com>
7 *
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.
11 */
12
13 #include <linux/clk-provider.h>
14 #include <linux/clocksource.h>
15
16 #include <asm/mach/arch.h>
17
18 static const char * const sunxi_board_dt_compat[] = {
19 "allwinner,sun4i-a10",
20 "allwinner,sun5i-a10s",
21 "allwinner,sun5i-a13",
22 NULL,
23 };
24
25 DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)")
26 .dt_compat = sunxi_board_dt_compat,
27 MACHINE_END
28
29 static const char * const sun6i_board_dt_compat[] = {
30 "allwinner,sun6i-a31",
31 NULL,
32 };
33
34 extern void __init sun6i_reset_init(void);
35 static void __init sun6i_timer_init(void)
36 {
37 of_clk_init(NULL);
38 sun6i_reset_init();
39 clocksource_of_init();
40 }
41
42 DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
43 .init_time = sun6i_timer_init,
44 .dt_compat = sun6i_board_dt_compat,
45 MACHINE_END
46
47 static const char * const sun7i_board_dt_compat[] = {
48 "allwinner,sun7i-a20",
49 NULL,
50 };
51
52 DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")
53 .dt_compat = sun7i_board_dt_compat,
54 MACHINE_END
This page took 0.040953 seconds and 6 git commands to generate.