2019-05-30 06:57:46 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2012-03-01 12:25:09 +07:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-mmp/mmp-dt.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell Technology Group Ltd.
|
|
|
|
* Author: Haojian Zhuang <haojian.zhuang@marvell.com>
|
|
|
|
*/
|
|
|
|
|
2013-04-21 15:53:02 +07:00
|
|
|
#include <linux/irqchip.h>
|
2012-03-01 12:25:09 +07:00
|
|
|
#include <linux/of_platform.h>
|
2014-10-31 09:13:53 +07:00
|
|
|
#include <linux/clk-provider.h>
|
2019-07-11 04:13:51 +07:00
|
|
|
#include <linux/clocksource.h>
|
2012-03-01 12:25:09 +07:00
|
|
|
#include <asm/mach/arch.h>
|
2012-04-19 17:36:31 +07:00
|
|
|
#include <asm/mach/time.h>
|
2014-10-31 09:13:53 +07:00
|
|
|
#include <asm/hardware/cache-tauros2.h>
|
2012-03-01 12:25:09 +07:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2015-07-28 05:27:52 +07:00
|
|
|
static const char *const pxa168_dt_board_compat[] __initconst = {
|
2014-10-31 09:13:53 +07:00
|
|
|
"mrvl,pxa168-aspenite",
|
|
|
|
NULL,
|
2012-03-01 12:25:09 +07:00
|
|
|
};
|
|
|
|
|
2015-07-28 05:27:52 +07:00
|
|
|
static const char *const pxa910_dt_board_compat[] __initconst = {
|
2014-10-31 09:13:53 +07:00
|
|
|
"mrvl,pxa910-dkb",
|
|
|
|
NULL,
|
2012-04-19 17:36:31 +07:00
|
|
|
};
|
|
|
|
|
2014-10-31 09:13:53 +07:00
|
|
|
static void __init mmp_init_time(void)
|
2012-04-19 17:36:31 +07:00
|
|
|
{
|
2014-10-31 09:13:53 +07:00
|
|
|
#ifdef CONFIG_CACHE_TAUROS2
|
|
|
|
tauros2_init(0);
|
|
|
|
#endif
|
|
|
|
of_clk_init(NULL);
|
2019-07-11 04:13:51 +07:00
|
|
|
timer_probe();
|
2012-03-01 12:25:09 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 09:13:53 +07:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa168_dt_board_compat,
|
2012-04-19 17:36:31 +07:00
|
|
|
MACHINE_END
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 09:13:53 +07:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa910_dt_board_compat,
|
2012-03-01 12:25:09 +07:00
|
|
|
MACHINE_END
|