Commit | Line | Data |
---|---|---|
5d489766 HZ |
1 | /* |
2 | * linux/arch/arm/mach-mmp/mmp-dt.c | |
3 | * | |
4 | * Copyright (C) 2012 Marvell Technology Group Ltd. | |
5 | * Author: Haojian Zhuang <haojian.zhuang@marvell.com> | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * publishhed by the Free Software Foundation. | |
10 | */ | |
11 | ||
0f374561 | 12 | #include <linux/irqchip.h> |
5d489766 | 13 | #include <linux/of_platform.h> |
d41ef540 | 14 | #include <linux/clk-provider.h> |
5d489766 | 15 | #include <asm/mach/arch.h> |
641f4d56 | 16 | #include <asm/mach/time.h> |
d41ef540 | 17 | #include <asm/hardware/cache-tauros2.h> |
5d489766 HZ |
18 | |
19 | #include "common.h" | |
20 | ||
641f4d56 | 21 | extern void __init mmp_dt_init_timer(void); |
5d489766 | 22 | |
19c233b7 | 23 | static const char *const pxa168_dt_board_compat[] __initconst = { |
d41ef540 CX |
24 | "mrvl,pxa168-aspenite", |
25 | NULL, | |
5d489766 HZ |
26 | }; |
27 | ||
19c233b7 | 28 | static const char *const pxa910_dt_board_compat[] __initconst = { |
d41ef540 CX |
29 | "mrvl,pxa910-dkb", |
30 | NULL, | |
641f4d56 HZ |
31 | }; |
32 | ||
d41ef540 | 33 | static void __init mmp_init_time(void) |
641f4d56 | 34 | { |
d41ef540 CX |
35 | #ifdef CONFIG_CACHE_TAUROS2 |
36 | tauros2_init(0); | |
37 | #endif | |
38 | mmp_dt_init_timer(); | |
39 | of_clk_init(NULL); | |
5d489766 HZ |
40 | } |
41 | ||
5d489766 HZ |
42 | DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)") |
43 | .map_io = mmp_map_io, | |
d41ef540 CX |
44 | .init_time = mmp_init_time, |
45 | .dt_compat = pxa168_dt_board_compat, | |
641f4d56 HZ |
46 | MACHINE_END |
47 | ||
48 | DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)") | |
49 | .map_io = mmp_map_io, | |
d41ef540 CX |
50 | .init_time = mmp_init_time, |
51 | .dt_compat = pxa910_dt_board_compat, | |
5d489766 | 52 | MACHINE_END |