blob: 35559792d5cca0b7ab24af4bd53a1cbc1ab1c6a8 [file] [log] [blame]
Thomas Gleixner1d0ea062019-05-29 16:57:46 -07001// SPDX-License-Identifier: GPL-2.0-only
Haojian Zhuang5d489762012-03-01 13:25:09 +08002/*
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 Zhuang5d489762012-03-01 13:25:09 +08007 */
8
Haojian Zhuang0f374562013-04-21 16:53:02 +08009#include <linux/irqchip.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080010#include <linux/of_platform.h>
Chao Xied41ef542014-10-31 10:13:53 +080011#include <linux/clk-provider.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080012#include <asm/mach/arch.h>
Haojian Zhuang641f4d52012-04-19 18:36:31 +080013#include <asm/mach/time.h>
Chao Xied41ef542014-10-31 10:13:53 +080014#include <asm/hardware/cache-tauros2.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080015
16#include "common.h"
17
Haojian Zhuang641f4d52012-04-19 18:36:31 +080018extern void __init mmp_dt_init_timer(void);
Haojian Zhuang5d489762012-03-01 13:25:09 +080019
Nicolas Pitre19c233b2015-07-27 18:27:52 -040020static const char *const pxa168_dt_board_compat[] __initconst = {
Haojian Zhuang5d489762012-03-01 13:25:09 +080021 "mrvl,pxa168-aspenite",
Chao Xied41ef542014-10-31 10:13:53 +080022 NULL,
23};
24
Nicolas Pitre19c233b2015-07-27 18:27:52 -040025static const char *const pxa910_dt_board_compat[] __initconst = {
Haojian Zhuang641f4d52012-04-19 18:36:31 +080026 "mrvl,pxa910-dkb",
Haojian Zhuang5d489762012-03-01 13:25:09 +080027 NULL,
28};
29
Chao Xied41ef542014-10-31 10:13:53 +080030static 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 Zhuang5d489762012-03-01 13:25:09 +080039DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
40 .map_io = mmp_map_io,
Chao Xied41ef542014-10-31 10:13:53 +080041 .init_time = mmp_init_time,
42 .dt_compat = pxa168_dt_board_compat,
Haojian Zhuang641f4d52012-04-19 18:36:31 +080043MACHINE_END
44
45DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
46 .map_io = mmp_map_io,
Chao Xied41ef542014-10-31 10:13:53 +080047 .init_time = mmp_init_time,
48 .dt_compat = pxa910_dt_board_compat,
Haojian Zhuang5d489762012-03-01 13:25:09 +080049MACHINE_END