blob: 6e155f03b83cbf3495796200dc6b81c817255a09 [file] [log] [blame]
Haojian Zhuang5d489762012-03-01 13:25:09 +08001/*
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
Haojian Zhuang0f374562013-04-21 16:53:02 +080012#include <linux/irqchip.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080013#include <linux/of_platform.h>
Chao Xied41ef542014-10-31 10:13:53 +080014#include <linux/clk-provider.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080015#include <asm/mach/arch.h>
Haojian Zhuang641f4d52012-04-19 18:36:31 +080016#include <asm/mach/time.h>
Chao Xied41ef542014-10-31 10:13:53 +080017#include <asm/hardware/cache-tauros2.h>
Haojian Zhuang5d489762012-03-01 13:25:09 +080018
19#include "common.h"
20
Haojian Zhuang641f4d52012-04-19 18:36:31 +080021extern void __init mmp_dt_init_timer(void);
Haojian Zhuang5d489762012-03-01 13:25:09 +080022
Nicolas Pitre19c233b2015-07-27 18:27:52 -040023static const char *const pxa168_dt_board_compat[] __initconst = {
Haojian Zhuang5d489762012-03-01 13:25:09 +080024 "mrvl,pxa168-aspenite",
Chao Xied41ef542014-10-31 10:13:53 +080025 NULL,
26};
27
Nicolas Pitre19c233b2015-07-27 18:27:52 -040028static const char *const pxa910_dt_board_compat[] __initconst = {
Haojian Zhuang641f4d52012-04-19 18:36:31 +080029 "mrvl,pxa910-dkb",
Haojian Zhuang5d489762012-03-01 13:25:09 +080030 NULL,
31};
32
Chao Xied41ef542014-10-31 10:13:53 +080033static void __init mmp_init_time(void)
34{
35#ifdef CONFIG_CACHE_TAUROS2
36 tauros2_init(0);
37#endif
38 mmp_dt_init_timer();
39 of_clk_init(NULL);
40}
41
Haojian Zhuang5d489762012-03-01 13:25:09 +080042DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
43 .map_io = mmp_map_io,
Chao Xied41ef542014-10-31 10:13:53 +080044 .init_time = mmp_init_time,
45 .dt_compat = pxa168_dt_board_compat,
Haojian Zhuang641f4d52012-04-19 18:36:31 +080046MACHINE_END
47
48DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
49 .map_io = mmp_map_io,
Chao Xied41ef542014-10-31 10:13:53 +080050 .init_time = mmp_init_time,
51 .dt_compat = pxa910_dt_board_compat,
Haojian Zhuang5d489762012-03-01 13:25:09 +080052MACHINE_END