mmp-dt.c 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 *  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.
 */

H
Haojian Zhuang 已提交
12
#include <linux/irqchip.h>
13
#include <linux/of_platform.h>
14
#include <linux/clk-provider.h>
15
#include <asm/mach/arch.h>
16
#include <asm/mach/time.h>
17
#include <asm/hardware/cache-tauros2.h>
18 19 20

#include "common.h"

21
extern void __init mmp_dt_init_timer(void);
22

23 24 25
static const char *pxa168_dt_board_compat[] __initdata = {
	"mrvl,pxa168-aspenite",
	NULL,
26 27
};

28 29 30
static const char *pxa910_dt_board_compat[] __initdata = {
	"mrvl,pxa910-dkb",
	NULL,
31 32
};

33
static void __init mmp_init_time(void)
34
{
35 36 37 38 39
#ifdef CONFIG_CACHE_TAUROS2
	tauros2_init(0);
#endif
	mmp_dt_init_timer();
	of_clk_init(NULL);
40 41 42 43
}

DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
	.map_io		= mmp_map_io,
44 45
	.init_time	= mmp_init_time,
	.dt_compat	= pxa168_dt_board_compat,
46 47 48 49
MACHINE_END

DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
	.map_io		= mmp_map_io,
50 51
	.init_time	= mmp_init_time,
	.dt_compat	= pxa910_dt_board_compat,
52
MACHINE_END