Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * sh73a0 processor support
0004  *
0005  * Copyright (C) 2010  Takashi Yoshii
0006  * Copyright (C) 2010  Magnus Damm
0007  * Copyright (C) 2008  Yoshihiro Shimoda
0008  */
0009 #include <linux/kernel.h>
0010 #include <linux/init.h>
0011 #include <linux/interrupt.h>
0012 #include <linux/irq.h>
0013 #include <linux/delay.h>
0014 #include <linux/input.h>
0015 #include <linux/io.h>
0016 
0017 #include <asm/hardware/cache-l2x0.h>
0018 #include <asm/mach/map.h>
0019 #include <asm/mach/arch.h>
0020 #include <asm/mach/time.h>
0021 
0022 #include "common.h"
0023 #include "sh73a0.h"
0024 
0025 static void __init sh73a0_generic_init(void)
0026 {
0027 #ifdef CONFIG_CACHE_L2X0
0028     /* Shared attribute override enable, 64K*8way */
0029     l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff);
0030 #endif
0031 }
0032 
0033 static const char *const sh73a0_boards_compat_dt[] __initconst = {
0034     "renesas,sh73a0",
0035     NULL
0036 };
0037 
0038 DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)")
0039     .smp        = smp_ops(sh73a0_smp_ops),
0040     .init_machine   = sh73a0_generic_init,
0041     .init_late  = shmobile_init_late,
0042     .dt_compat  = sh73a0_boards_compat_dt,
0043 MACHINE_END