2019-05-30 02:57:46 +03:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2012-03-01 09:25:09 +04: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 12:53:02 +04:00
|
|
|
#include <linux/irqchip.h>
|
2012-03-01 09:25:09 +04:00
|
|
|
#include <linux/of_platform.h>
|
2020-05-05 18:45:36 +03:00
|
|
|
#include <linux/of_clk.h>
|
2019-07-11 00:13:51 +03:00
|
|
|
#include <linux/clocksource.h>
|
2012-03-01 09:25:09 +04:00
|
|
|
#include <asm/mach/arch.h>
|
2012-04-19 14:36:31 +04:00
|
|
|
#include <asm/mach/time.h>
|
2014-10-31 05:13:53 +03:00
|
|
|
#include <asm/hardware/cache-tauros2.h>
|
2012-03-01 09:25:09 +04:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2015-07-28 01:27:52 +03:00
|
|
|
static const char *const pxa168_dt_board_compat[] __initconst = {
|
2014-10-31 05:13:53 +03:00
|
|
|
"mrvl,pxa168-aspenite",
|
|
|
|
NULL,
|
2012-03-01 09:25:09 +04:00
|
|
|
};
|
|
|
|
|
2015-07-28 01:27:52 +03:00
|
|
|
static const char *const pxa910_dt_board_compat[] __initconst = {
|
2014-10-31 05:13:53 +03:00
|
|
|
"mrvl,pxa910-dkb",
|
|
|
|
NULL,
|
2012-04-19 14:36:31 +04:00
|
|
|
};
|
|
|
|
|
2014-10-31 05:13:53 +03:00
|
|
|
static void __init mmp_init_time(void)
|
2012-04-19 14:36:31 +04:00
|
|
|
{
|
2014-10-31 05:13:53 +03:00
|
|
|
#ifdef CONFIG_CACHE_TAUROS2
|
|
|
|
tauros2_init(0);
|
|
|
|
#endif
|
|
|
|
of_clk_init(NULL);
|
2019-07-11 00:13:51 +03:00
|
|
|
timer_probe();
|
2012-03-01 09:25:09 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 05:13:53 +03:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa168_dt_board_compat,
|
2012-04-19 14:36:31 +04:00
|
|
|
MACHINE_END
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 05:13:53 +03:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa910_dt_board_compat,
|
2012-03-01 09:25:09 +04:00
|
|
|
MACHINE_END
|