setup-sh73a0.c (1045B)
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * sh73a0 processor support 4 * 5 * Copyright (C) 2010 Takashi Yoshii 6 * Copyright (C) 2010 Magnus Damm 7 * Copyright (C) 2008 Yoshihiro Shimoda 8 */ 9#include <linux/kernel.h> 10#include <linux/init.h> 11#include <linux/interrupt.h> 12#include <linux/irq.h> 13#include <linux/delay.h> 14#include <linux/input.h> 15#include <linux/io.h> 16 17#include <asm/hardware/cache-l2x0.h> 18#include <asm/mach/map.h> 19#include <asm/mach/arch.h> 20#include <asm/mach/time.h> 21 22#include "common.h" 23#include "sh73a0.h" 24 25static void __init sh73a0_generic_init(void) 26{ 27#ifdef CONFIG_CACHE_L2X0 28 /* Shared attribute override enable, 64K*8way */ 29 l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff); 30#endif 31} 32 33static const char *const sh73a0_boards_compat_dt[] __initconst = { 34 "renesas,sh73a0", 35 NULL 36}; 37 38DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)") 39 .smp = smp_ops(sh73a0_smp_ops), 40 .init_machine = sh73a0_generic_init, 41 .init_late = shmobile_init_late, 42 .dt_compat = sh73a0_boards_compat_dt, 43MACHINE_END