Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  *  linux/arch/arm/mach-mmp/mmp2-dt.c
0004  *
0005  *  Copyright (C) 2012 Marvell Technology Group Ltd.
0006  *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
0007  */
0008 
0009 #include <linux/io.h>
0010 #include <linux/irqchip.h>
0011 #include <linux/of_platform.h>
0012 #include <linux/of_clk.h>
0013 #include <linux/clocksource.h>
0014 #include <asm/mach/arch.h>
0015 #include <asm/mach/time.h>
0016 #include <asm/hardware/cache-tauros2.h>
0017 
0018 #include "common.h"
0019 
0020 static void __init mmp_init_time(void)
0021 {
0022 #ifdef CONFIG_CACHE_TAUROS2
0023     tauros2_init(0);
0024 #endif
0025     of_clk_init(NULL);
0026     timer_probe();
0027 }
0028 
0029 static const char *const mmp2_dt_board_compat[] __initconst = {
0030     "mrvl,mmp2",
0031     NULL,
0032 };
0033 
0034 DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
0035     .map_io     = mmp2_map_io,
0036     .init_time  = mmp_init_time,
0037     .dt_compat  = mmp2_dt_board_compat,
0038 MACHINE_END