2012-03-01 06:25:09 +01:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-mmp/mmp-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.
|
|
|
|
*/
|
|
|
|
|
2013-04-21 10:53:02 +02:00
|
|
|
#include <linux/irqchip.h>
|
2012-03-01 06:25:09 +01:00
|
|
|
#include <linux/of_platform.h>
|
2014-10-31 03:13:53 +01:00
|
|
|
#include <linux/clk-provider.h>
|
2012-03-01 06:25:09 +01:00
|
|
|
#include <asm/mach/arch.h>
|
2012-04-19 12:36:31 +02:00
|
|
|
#include <asm/mach/time.h>
|
2014-10-31 03:13:53 +01:00
|
|
|
#include <asm/hardware/cache-tauros2.h>
|
2012-03-01 06:25:09 +01:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2012-04-19 12:36:31 +02:00
|
|
|
extern void __init mmp_dt_init_timer(void);
|
2012-03-01 06:25:09 +01:00
|
|
|
|
2015-07-28 00:27:52 +02:00
|
|
|
static const char *const pxa168_dt_board_compat[] __initconst = {
|
2014-10-31 03:13:53 +01:00
|
|
|
"mrvl,pxa168-aspenite",
|
|
|
|
NULL,
|
2012-03-01 06:25:09 +01:00
|
|
|
};
|
|
|
|
|
2015-07-28 00:27:52 +02:00
|
|
|
static const char *const pxa910_dt_board_compat[] __initconst = {
|
2014-10-31 03:13:53 +01:00
|
|
|
"mrvl,pxa910-dkb",
|
|
|
|
NULL,
|
2012-04-19 12:36:31 +02:00
|
|
|
};
|
|
|
|
|
2014-10-31 03:13:53 +01:00
|
|
|
static void __init mmp_init_time(void)
|
2012-04-19 12:36:31 +02:00
|
|
|
{
|
2014-10-31 03:13:53 +01:00
|
|
|
#ifdef CONFIG_CACHE_TAUROS2
|
|
|
|
tauros2_init(0);
|
|
|
|
#endif
|
|
|
|
mmp_dt_init_timer();
|
|
|
|
of_clk_init(NULL);
|
2012-03-01 06:25:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 03:13:53 +01:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa168_dt_board_compat,
|
2012-04-19 12:36:31 +02:00
|
|
|
MACHINE_END
|
|
|
|
|
|
|
|
DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
|
|
|
|
.map_io = mmp_map_io,
|
2014-10-31 03:13:53 +01:00
|
|
|
.init_time = mmp_init_time,
|
|
|
|
.dt_compat = pxa910_dt_board_compat,
|
2012-03-01 06:25:09 +01:00
|
|
|
MACHINE_END
|