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