1c44e182eSWolfram Sang // SPDX-License-Identifier: GPL-2.0
26d9598e2SMagnus Damm /*
36d9598e2SMagnus Damm  * sh73a0 processor support
46d9598e2SMagnus Damm  *
56d9598e2SMagnus Damm  * Copyright (C) 2010  Takashi Yoshii
66d9598e2SMagnus Damm  * Copyright (C) 2010  Magnus Damm
76d9598e2SMagnus Damm  * Copyright (C) 2008  Yoshihiro Shimoda
86d9598e2SMagnus Damm  */
96d9598e2SMagnus Damm #include <linux/kernel.h>
106d9598e2SMagnus Damm #include <linux/init.h>
116d9598e2SMagnus Damm #include <linux/interrupt.h>
126d9598e2SMagnus Damm #include <linux/irq.h>
136d9598e2SMagnus Damm #include <linux/delay.h>
146d9598e2SMagnus Damm #include <linux/input.h>
156d9598e2SMagnus Damm #include <linux/io.h>
16ded59d6dSGeert Uytterhoeven 
170b52b250SMagnus Damm #include <asm/hardware/cache-l2x0.h>
1850e15c34SMagnus Damm #include <asm/mach/map.h>
196d9598e2SMagnus Damm #include <asm/mach/arch.h>
203be26fdbSMagnus Damm #include <asm/mach/time.h>
21ded59d6dSGeert Uytterhoeven 
22fd44aa5eSMagnus Damm #include "common.h"
23ded59d6dSGeert Uytterhoeven #include "sh73a0.h"
246d9598e2SMagnus Damm 
sh73a0_generic_init(void)250b52b250SMagnus Damm static void __init sh73a0_generic_init(void)
260b52b250SMagnus Damm {
270b52b250SMagnus Damm #ifdef CONFIG_CACHE_L2X0
280b52b250SMagnus Damm 	/* Shared attribute override enable, 64K*8way */
29cc85e21dSGeert Uytterhoeven 	l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff);
300b52b250SMagnus Damm #endif
310b52b250SMagnus Damm }
320b52b250SMagnus Damm 
3319c233b7SNicolas Pitre static const char *const sh73a0_boards_compat_dt[] __initconst = {
3448609533SSimon Horman 	"renesas,sh73a0",
35*3238f82dSGeert Uytterhoeven 	NULL
3648609533SSimon Horman };
3748609533SSimon Horman 
3848609533SSimon Horman DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)")
39f9989507SSimon Horman 	.smp		= smp_ops(sh73a0_smp_ops),
400b52b250SMagnus Damm 	.init_machine	= sh73a0_generic_init,
41e604d809SMagnus Damm 	.init_late	= shmobile_init_late,
4248609533SSimon Horman 	.dt_compat	= sh73a0_boards_compat_dt,
4348609533SSimon Horman MACHINE_END
44