Merge tag 'omap-for-v3.16/fixes-against-rc1' of git://git.kernel.org/pub/scm/linux...
[deliverable/linux.git] / arch / arm / mach-sunxi / sunxi.c
CommitLineData
3b52634f
MR
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
751b2ac4
MR
13#include <linux/clk-provider.h>
14#include <linux/clocksource.h>
3b52634f 15
3b52634f 16#include <asm/mach/arch.h>
bc34b5f2 17
3b52634f 18static const char * const sunxi_board_dt_compat[] = {
43880f70 19 "allwinner,sun4i-a10",
81265dfb 20 "allwinner,sun5i-a10s",
43880f70 21 "allwinner,sun5i-a13",
3b52634f
MR
22 NULL,
23};
24
25DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)")
3b52634f
MR
26 .dt_compat = sunxi_board_dt_compat,
27MACHINE_END
91a31977
MR
28
29static const char * const sun6i_board_dt_compat[] = {
30 "allwinner,sun6i-a31",
31 NULL,
32};
33
751b2ac4
MR
34extern void __init sun6i_reset_init(void);
35static void __init sun6i_timer_init(void)
36{
37 of_clk_init(NULL);
e58cf019
AB
38 if (IS_ENABLED(CONFIG_RESET_CONTROLLER))
39 sun6i_reset_init();
751b2ac4
MR
40 clocksource_of_init();
41}
42
91a31977 43DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
751b2ac4 44 .init_time = sun6i_timer_init,
91a31977
MR
45 .dt_compat = sun6i_board_dt_compat,
46MACHINE_END
47
48static const char * const sun7i_board_dt_compat[] = {
49 "allwinner,sun7i-a20",
50 NULL,
51};
52
53DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")
91a31977 54 .dt_compat = sun7i_board_dt_compat,
3b52634f 55MACHINE_END
This page took 0.07368 seconds and 5 git commands to generate.