2018-06-14 01:56:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2010-11-17 10:59:31 +00: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-20 16:53:09 +00:00
|
|
|
|
2015-01-09 13:08:49 +00:00
|
|
|
#include <asm/hardware/cache-l2x0.h>
|
2012-02-29 12:37:27 +00:00
|
|
|
#include <asm/mach/map.h>
|
2010-11-17 10:59:31 +00:00
|
|
|
#include <asm/mach/arch.h>
|
2012-03-06 08:36:45 +00:00
|
|
|
#include <asm/mach/time.h>
|
2014-06-20 16:53:09 +00:00
|
|
|
|
2014-06-17 07:47:37 +00:00
|
|
|
#include "common.h"
|
2014-06-20 16:53:09 +00:00
|
|
|
#include "sh73a0.h"
|
2010-11-17 10:59:31 +00:00
|
|
|
|
2015-01-09 13:08:49 +00:00
|
|
|
static void __init sh73a0_generic_init(void)
|
|
|
|
{
|
|
|
|
#ifdef CONFIG_CACHE_L2X0
|
|
|
|
/* Shared attribute override enable, 64K*8way */
|
2020-11-17 10:30:20 +00:00
|
|
|
l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff);
|
2015-01-09 13:08:49 +00:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-07-27 22:27:52 +00:00
|
|
|
static const char *const sh73a0_boards_compat_dt[] __initconst = {
|
2012-11-21 13:00:15 +00:00
|
|
|
"renesas,sh73a0",
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)")
|
2013-02-15 12:38:20 +00:00
|
|
|
.smp = smp_ops(sh73a0_smp_ops),
|
2015-01-09 13:08:49 +00:00
|
|
|
.init_machine = sh73a0_generic_init,
|
2014-07-30 23:32:15 +00:00
|
|
|
.init_late = shmobile_init_late,
|
2012-11-21 13:00:15 +00:00
|
|
|
.dt_compat = sh73a0_boards_compat_dt,
|
|
|
|
MACHINE_END
|