Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[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>
d767af5e 15#include <linux/init.h>
f91b7c62 16#include <linux/platform_device.h>
3b52634f 17
3b52634f 18#include <asm/mach/arch.h>
bc34b5f2 19
3b52634f 20static const char * const sunxi_board_dt_compat[] = {
43880f70 21 "allwinner,sun4i-a10",
81265dfb 22 "allwinner,sun5i-a10s",
43880f70 23 "allwinner,sun5i-a13",
bef6229f 24 "allwinner,sun5i-r8",
3b52634f
MR
25 NULL,
26};
27
bef6229f 28DT_MACHINE_START(SUNXI_DT, "Allwinner sun4i/sun5i Families")
3b52634f
MR
29 .dt_compat = sunxi_board_dt_compat,
30MACHINE_END
91a31977
MR
31
32static const char * const sun6i_board_dt_compat[] = {
33 "allwinner,sun6i-a31",
b0f2faa5 34 "allwinner,sun6i-a31s",
91a31977
MR
35 NULL,
36};
37
751b2ac4
MR
38extern void __init sun6i_reset_init(void);
39static void __init sun6i_timer_init(void)
40{
41 of_clk_init(NULL);
e58cf019
AB
42 if (IS_ENABLED(CONFIG_RESET_CONTROLLER))
43 sun6i_reset_init();
3722ed23 44 clocksource_probe();
751b2ac4
MR
45}
46
91a31977 47DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
751b2ac4 48 .init_time = sun6i_timer_init,
91a31977
MR
49 .dt_compat = sun6i_board_dt_compat,
50MACHINE_END
51
52static const char * const sun7i_board_dt_compat[] = {
53 "allwinner,sun7i-a20",
54 NULL,
55};
56
57DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")
91a31977 58 .dt_compat = sun7i_board_dt_compat,
3b52634f 59MACHINE_END
ac84b79f
CYT
60
61static const char * const sun8i_board_dt_compat[] = {
62 "allwinner,sun8i-a23",
159870d2 63 "allwinner,sun8i-a33",
1425ec0f 64 "allwinner,sun8i-a83t",
14a882df 65 "allwinner,sun8i-h3",
ac84b79f
CYT
66 NULL,
67};
68
14a882df
JK
69DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family")
70 .init_time = sun6i_timer_init,
ac84b79f
CYT
71 .dt_compat = sun8i_board_dt_compat,
72MACHINE_END
3d4c2f1c
CYT
73
74static const char * const sun9i_board_dt_compat[] = {
75 "allwinner,sun9i-a80",
76 NULL,
77};
78
79DT_MACHINE_START(SUN9I_DT, "Allwinner sun9i Family")
80 .dt_compat = sun9i_board_dt_compat,
81MACHINE_END
This page took 0.11728 seconds and 5 git commands to generate.