blob: 0341359b24a43d5b5e64c234e0f68596cf962955 [file] [log] [blame]
Haojian Zhuanga56f9162012-04-19 17:46:53 +08001/*
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>
Haojian Zhuang0f374562013-04-21 16:53:02 +080013#include <linux/irqchip.h>
Haojian Zhuanga56f9162012-04-19 17:46:53 +080014#include <linux/of_platform.h>
Chao Xied41ef542014-10-31 10:13:53 +080015#include <linux/clk-provider.h>
Haojian Zhuanga56f9162012-04-19 17:46:53 +080016#include <asm/mach/arch.h>
17#include <asm/mach/time.h>
Chao Xied41ef542014-10-31 10:13:53 +080018#include <asm/hardware/cache-tauros2.h>
Haojian Zhuanga56f9162012-04-19 17:46:53 +080019
20#include "common.h"
21
Haojian Zhuanga56f9162012-04-19 17:46:53 +080022extern void __init mmp_dt_init_timer(void);
23
Chao Xied41ef542014-10-31 10:13:53 +080024static void __init mmp_init_time(void)
Haojian Zhuanga56f9162012-04-19 17:46:53 +080025{
Chao Xied41ef542014-10-31 10:13:53 +080026#ifdef CONFIG_CACHE_TAUROS2
27 tauros2_init(0);
28#endif
29 mmp_dt_init_timer();
30 of_clk_init(NULL);
Haojian Zhuanga56f9162012-04-19 17:46:53 +080031}
32
Nicolas Pitre19c233b2015-07-27 18:27:52 -040033static const char *const mmp2_dt_board_compat[] __initconst = {
Haojian Zhuanga56f9162012-04-19 17:46:53 +080034 "mrvl,mmp2-brownstone",
35 NULL,
36};
37
38DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
39 .map_io = mmp_map_io,
Chao Xied41ef542014-10-31 10:13:53 +080040 .init_time = mmp_init_time,
Haojian Zhuanga56f9162012-04-19 17:46:53 +080041 .dt_compat = mmp2_dt_board_compat,
42MACHINE_END