2019-05-30 07:57:46 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2012-04-19 17:46:53 +08:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-mmp/mmp2-dt.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell Technology Group Ltd.
|
|
|
|
* Author: Haojian Zhuang <haojian.zhuang@marvell.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/io.h>
|
2013-04-21 16:53:02 +08:00
|
|
|
#include <linux/irqchip.h>
|
2012-04-19 17:46:53 +08:00
|
|
|
#include <linux/of_platform.h>
|
2020-05-05 23:45:36 +08:00
|
|
|
#include <linux/of_clk.h>
|
2019-07-11 05:13:51 +08:00
|
|
|
#include <linux/clocksource.h>
|
2012-04-19 17:46:53 +08:00
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach/time.h>
|
2014-10-31 10:13:53 +08:00
|
|
|
#include <asm/hardware/cache-tauros2.h>
|
2012-04-19 17:46:53 +08:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2014-10-31 10:13:53 +08:00
|
|
|
static void __init mmp_init_time(void)
|
2012-04-19 17:46:53 +08:00
|
|
|
{
|
2014-10-31 10:13:53 +08:00
|
|
|
#ifdef CONFIG_CACHE_TAUROS2
|
|
|
|
tauros2_init(0);
|
|
|
|
#endif
|
|
|
|
of_clk_init(NULL);
|
2019-07-11 05:13:51 +08:00
|
|
|
timer_probe();
|
2012-04-19 17:46:53 +08:00
|
|
|
}
|
|
|
|
|
2015-07-28 06:27:52 +08:00
|
|
|
static const char *const mmp2_dt_board_compat[] __initconst = {
|
2018-12-02 19:38:48 +08:00
|
|
|
"mrvl,mmp2",
|
2012-04-19 17:46:53 +08:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
|
2019-06-27 06:10:25 +08:00
|
|
|
.map_io = mmp2_map_io,
|
2014-10-31 10:13:53 +08:00
|
|
|
.init_time = mmp_init_time,
|
2012-04-19 17:46:53 +08:00
|
|
|
.dt_compat = mmp2_dt_board_compat,
|
|
|
|
MACHINE_END
|