Thomas Gleixner | 1d0ea06 | 2019-05-29 16:57:46 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 2 | /* |
| 3 | * linux/arch/arm/mach-mmp/mmp-dt.c |
| 4 | * |
| 5 | * Copyright (C) 2012 Marvell Technology Group Ltd. |
| 6 | * Author: Haojian Zhuang <haojian.zhuang@marvell.com> |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 7 | */ |
| 8 | |
Haojian Zhuang | 0f37456 | 2013-04-21 16:53:02 +0800 | [diff] [blame] | 9 | #include <linux/irqchip.h> |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 10 | #include <linux/of_platform.h> |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 11 | #include <linux/clk-provider.h> |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 12 | #include <asm/mach/arch.h> |
Haojian Zhuang | 641f4d5 | 2012-04-19 18:36:31 +0800 | [diff] [blame] | 13 | #include <asm/mach/time.h> |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 14 | #include <asm/hardware/cache-tauros2.h> |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 15 | |
| 16 | #include "common.h" |
| 17 | |
Haojian Zhuang | 641f4d5 | 2012-04-19 18:36:31 +0800 | [diff] [blame] | 18 | extern void __init mmp_dt_init_timer(void); |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 19 | |
Nicolas Pitre | 19c233b | 2015-07-27 18:27:52 -0400 | [diff] [blame] | 20 | static const char *const pxa168_dt_board_compat[] __initconst = { |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 21 | "mrvl,pxa168-aspenite", |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 22 | NULL, |
| 23 | }; |
| 24 | |
Nicolas Pitre | 19c233b | 2015-07-27 18:27:52 -0400 | [diff] [blame] | 25 | static const char *const pxa910_dt_board_compat[] __initconst = { |
Haojian Zhuang | 641f4d5 | 2012-04-19 18:36:31 +0800 | [diff] [blame] | 26 | "mrvl,pxa910-dkb", |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 27 | NULL, |
| 28 | }; |
| 29 | |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 30 | static void __init mmp_init_time(void) |
| 31 | { |
| 32 | #ifdef CONFIG_CACHE_TAUROS2 |
| 33 | tauros2_init(0); |
| 34 | #endif |
| 35 | mmp_dt_init_timer(); |
| 36 | of_clk_init(NULL); |
| 37 | } |
| 38 | |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 39 | DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)") |
| 40 | .map_io = mmp_map_io, |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 41 | .init_time = mmp_init_time, |
| 42 | .dt_compat = pxa168_dt_board_compat, |
Haojian Zhuang | 641f4d5 | 2012-04-19 18:36:31 +0800 | [diff] [blame] | 43 | MACHINE_END |
| 44 | |
| 45 | DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)") |
| 46 | .map_io = mmp_map_io, |
Chao Xie | d41ef54 | 2014-10-31 10:13:53 +0800 | [diff] [blame] | 47 | .init_time = mmp_init_time, |
| 48 | .dt_compat = pxa910_dt_board_compat, |
Haojian Zhuang | 5d48976 | 2012-03-01 13:25:09 +0800 | [diff] [blame] | 49 | MACHINE_END |