Linux Audio

Check our new training course

Loading...
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 *  linux/arch/arm/mach-mmp/mmp-dt.c
 4 *
 5 *  Copyright (C) 2012 Marvell Technology Group Ltd.
 6 *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
 
 
 
 
 7 */
 8
 9#include <linux/of_clk.h>
10#include <linux/clocksource.h>
 
11#include <asm/mach/arch.h>
 
12#include <asm/hardware/cache-tauros2.h>
13
14#include "common.h"
15
 
 
16static const char *const pxa168_dt_board_compat[] __initconst = {
17	"mrvl,pxa168-aspenite",
18	NULL,
19};
20
21static const char *const pxa910_dt_board_compat[] __initconst = {
22	"mrvl,pxa910-dkb",
23	NULL,
24};
25
26static void __init mmp_init_time(void)
27{
28#ifdef CONFIG_CACHE_TAUROS2
29	tauros2_init(0);
30#endif
 
31	of_clk_init(NULL);
32	timer_probe();
33}
34
35DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
36	.map_io		= mmp_map_io,
37	.init_time	= mmp_init_time,
38	.dt_compat	= pxa168_dt_board_compat,
39MACHINE_END
40
41DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
42	.map_io		= mmp_map_io,
43	.init_time	= mmp_init_time,
44	.dt_compat	= pxa910_dt_board_compat,
45MACHINE_END
v4.17
 
 1/*
 2 *  linux/arch/arm/mach-mmp/mmp-dt.c
 3 *
 4 *  Copyright (C) 2012 Marvell Technology Group Ltd.
 5 *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
 6 *
 7 *  This program is free software; you can redistribute it and/or modify
 8 *  it under the terms of the GNU General Public License version 2 as
 9 *  publishhed by the Free Software Foundation.
10 */
11
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#include "common.h"
20
21extern void __init mmp_dt_init_timer(void);
22
23static const char *const pxa168_dt_board_compat[] __initconst = {
24	"mrvl,pxa168-aspenite",
25	NULL,
26};
27
28static const char *const pxa910_dt_board_compat[] __initconst = {
29	"mrvl,pxa910-dkb",
30	NULL,
31};
32
33static void __init mmp_init_time(void)
34{
35#ifdef CONFIG_CACHE_TAUROS2
36	tauros2_init(0);
37#endif
38	mmp_dt_init_timer();
39	of_clk_init(NULL);
 
40}
41
42DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
43	.map_io		= mmp_map_io,
44	.init_time	= mmp_init_time,
45	.dt_compat	= pxa168_dt_board_compat,
46MACHINE_END
47
48DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
49	.map_io		= mmp_map_io,
50	.init_time	= mmp_init_time,
51	.dt_compat	= pxa910_dt_board_compat,
52MACHINE_END