Commit | Line | Data |
---|---|---|
a56f9162 HZ |
1 | /* |
2 | * linux/arch/arm/mach-mmp/mmp2-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 | ||
12 | #include <linux/io.h> | |
0f374561 | 13 | #include <linux/irqchip.h> |
a56f9162 | 14 | #include <linux/of_platform.h> |
d41ef540 | 15 | #include <linux/clk-provider.h> |
a56f9162 HZ |
16 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/time.h> | |
d41ef540 | 18 | #include <asm/hardware/cache-tauros2.h> |
a56f9162 HZ |
19 | |
20 | #include "common.h" | |
21 | ||
a56f9162 HZ |
22 | extern void __init mmp_dt_init_timer(void); |
23 | ||
d41ef540 | 24 | static void __init mmp_init_time(void) |
a56f9162 | 25 | { |
d41ef540 CX |
26 | #ifdef CONFIG_CACHE_TAUROS2 |
27 | tauros2_init(0); | |
28 | #endif | |
29 | mmp_dt_init_timer(); | |
30 | of_clk_init(NULL); | |
a56f9162 HZ |
31 | } |
32 | ||
19c233b7 | 33 | static const char *const mmp2_dt_board_compat[] __initconst = { |
a56f9162 HZ |
34 | "mrvl,mmp2-brownstone", |
35 | NULL, | |
36 | }; | |
37 | ||
38 | DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)") | |
39 | .map_io = mmp_map_io, | |
d41ef540 | 40 | .init_time = mmp_init_time, |
a56f9162 HZ |
41 | .dt_compat = mmp2_dt_board_compat, |
42 | MACHINE_END |