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>
|
2014-10-31 10:13:53 +08:00
|
|
|
#include <linux/clk-provider.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"
|
|
|
|
|
|
|
|
extern void __init mmp_dt_init_timer(void);
|
|
|
|
|
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);
|
2018-11-29 01:53:19 +08:00
|
|
|
mmp_dt_init_timer();
|
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)")
|
|
|
|
.map_io = mmp_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
|