xref: /linux/arch/arm/mach-mmp/mmp3.c (revision a9372a5fb20597a070d89f9402241d9012c0590f)
1*a9372a5fSLubomir Rintel // SPDX-License-Identifier: GPL-2.0-only
2*a9372a5fSLubomir Rintel /*
3*a9372a5fSLubomir Rintel  *  Marvell MMP3 aka PXA2128 aka 88AP2128 support
4*a9372a5fSLubomir Rintel  *
5*a9372a5fSLubomir Rintel  *  Copyright (C) 2019 Lubomir Rintel <lkundrak@v3.sk>
6*a9372a5fSLubomir Rintel  */
7*a9372a5fSLubomir Rintel 
8*a9372a5fSLubomir Rintel #include <linux/io.h>
9*a9372a5fSLubomir Rintel #include <linux/irqchip.h>
10*a9372a5fSLubomir Rintel #include <linux/of_platform.h>
11*a9372a5fSLubomir Rintel #include <linux/clk-provider.h>
12*a9372a5fSLubomir Rintel #include <asm/mach/arch.h>
13*a9372a5fSLubomir Rintel #include <asm/hardware/cache-l2x0.h>
14*a9372a5fSLubomir Rintel 
15*a9372a5fSLubomir Rintel #include "common.h"
16*a9372a5fSLubomir Rintel 
17*a9372a5fSLubomir Rintel static const char *const mmp3_dt_board_compat[] __initconst = {
18*a9372a5fSLubomir Rintel 	"marvell,mmp3",
19*a9372a5fSLubomir Rintel 	NULL,
20*a9372a5fSLubomir Rintel };
21*a9372a5fSLubomir Rintel 
22*a9372a5fSLubomir Rintel DT_MACHINE_START(MMP2_DT, "Marvell MMP3")
23*a9372a5fSLubomir Rintel 	.map_io		= mmp2_map_io,
24*a9372a5fSLubomir Rintel 	.dt_compat	= mmp3_dt_board_compat,
25*a9372a5fSLubomir Rintel 	.l2c_aux_val	= 1 << L310_AUX_CTRL_FWA_SHIFT |
26*a9372a5fSLubomir Rintel 			  L310_AUX_CTRL_DATA_PREFETCH |
27*a9372a5fSLubomir Rintel 			  L310_AUX_CTRL_INSTR_PREFETCH,
28*a9372a5fSLubomir Rintel 	.l2c_aux_mask	= 0xc20fffff,
29*a9372a5fSLubomir Rintel MACHINE_END
30