2018-06-14 09:56:06 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2010-11-17 18:59:31 +08:00
|
|
|
/*
|
|
|
|
* sh73a0 processor support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Takashi Yoshii
|
|
|
|
* Copyright (C) 2010 Magnus Damm
|
|
|
|
* Copyright (C) 2008 Yoshihiro Shimoda
|
|
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/input.h>
|
|
|
|
#include <linux/io.h>
|
2014-06-21 00:53:09 +08:00
|
|
|
|
2015-01-09 21:08:49 +08:00
|
|
|
#include <asm/hardware/cache-l2x0.h>
|
2012-02-29 20:37:27 +08:00
|
|
|
#include <asm/mach/map.h>
|
2010-11-17 18:59:31 +08:00
|
|
|
#include <asm/mach/arch.h>
|
2012-03-06 16:36:45 +08:00
|
|
|
#include <asm/mach/time.h>
|
2014-06-21 00:53:09 +08:00
|
|
|
|
2014-06-17 15:47:37 +08:00
|
|
|
#include "common.h"
|
2014-06-21 00:53:09 +08:00
|
|
|
#include "sh73a0.h"
|
2010-11-17 18:59:31 +08:00
|
|
|
|
2015-01-09 21:08:49 +08:00
|
|
|
static void __init sh73a0_generic_init(void)
|
|
|
|
{
|
|
|
|
#ifdef CONFIG_CACHE_L2X0
|
|
|
|
/* Shared attribute override enable, 64K*8way */
|
2020-11-17 18:30:20 +08:00
|
|
|
l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff);
|
2015-01-09 21:08:49 +08:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-07-28 06:27:52 +08:00
|
|
|
static const char *const sh73a0_boards_compat_dt[] __initconst = {
|
2012-11-21 21:00:15 +08:00
|
|
|
"renesas,sh73a0",
|
2022-03-03 20:50:54 +08:00
|
|
|
NULL
|
2012-11-21 21:00:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)")
|
2013-02-15 20:38:20 +08:00
|
|
|
.smp = smp_ops(sh73a0_smp_ops),
|
2015-01-09 21:08:49 +08:00
|
|
|
.init_machine = sh73a0_generic_init,
|
2014-07-31 07:32:15 +08:00
|
|
|
.init_late = shmobile_init_late,
|
2012-11-21 21:00:15 +08:00
|
|
|
.dt_compat = sh73a0_boards_compat_dt,
|
|
|
|
MACHINE_END
|