2012-04-19 09:46:53 +00:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-mmp/mmp2-dt.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell Technology Group Ltd.
|
|
|
|
* Author: Haojian Zhuang <haojian.zhuang@marvell.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* publishhed by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/io.h>
|
2013-04-21 08:53:02 +00:00
|
|
|
#include <linux/irqchip.h>
|
2012-04-19 09:46:53 +00:00
|
|
|
#include <linux/of_platform.h>
|
2014-10-31 02:13:53 +00:00
|
|
|
#include <linux/clk-provider.h>
|
2012-04-19 09:46:53 +00:00
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach/time.h>
|
2014-10-31 02:13:53 +00:00
|
|
|
#include <asm/hardware/cache-tauros2.h>
|
2012-04-19 09:46:53 +00:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
extern void __init mmp_dt_init_timer(void);
|
|
|
|
|
2014-10-31 02:13:53 +00:00
|
|
|
static void __init mmp_init_time(void)
|
2012-04-19 09:46:53 +00:00
|
|
|
{
|
2014-10-31 02:13:53 +00:00
|
|
|
#ifdef CONFIG_CACHE_TAUROS2
|
|
|
|
tauros2_init(0);
|
|
|
|
#endif
|
|
|
|
mmp_dt_init_timer();
|
|
|
|
of_clk_init(NULL);
|
2012-04-19 09:46:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char *mmp2_dt_board_compat[] __initdata = {
|
|
|
|
"mrvl,mmp2-brownstone",
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 02:13:53 +00:00
|
|
|
.init_time = mmp_init_time,
|
2012-04-19 09:46:53 +00:00
|
|
|
.dt_compat = mmp2_dt_board_compat,
|
|
|
|
MACHINE_END
|