mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
2edb89cd8e
The cache size should already be present in the L2 cache auxiliary control register: it is part of the integration process to configure the hardware IP. Most platforms get this right, yet still many cargo-cult program, and assume that they always need specifying to the L2 cache code. Remove them so we can find out which really need this. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
57 lines
1.7 KiB
C
57 lines
1.7 KiB
C
/*
|
|
* KZM-A9-GT board support - Reference Device Tree Implementation
|
|
*
|
|
* Copyright (C) 2012 Horms Solutions Ltd.
|
|
*
|
|
* Based on board-kzm9g.c
|
|
* Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#include <linux/delay.h>
|
|
#include <linux/io.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/input.h>
|
|
#include <linux/of_platform.h>
|
|
#include <mach/sh73a0.h>
|
|
#include <mach/common.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
static void __init kzm_init(void)
|
|
{
|
|
sh73a0_add_standard_devices_dt();
|
|
|
|
#ifdef CONFIG_CACHE_L2X0
|
|
/* Shared attribute override enable, 64K*8way */
|
|
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
|
|
#endif
|
|
}
|
|
|
|
static const char *kzm9g_boards_compat_dt[] __initdata = {
|
|
"renesas,kzm9g-reference",
|
|
NULL,
|
|
};
|
|
|
|
DT_MACHINE_START(KZM9G_DT, "kzm9g-reference")
|
|
.smp = smp_ops(sh73a0_smp_ops),
|
|
.map_io = sh73a0_map_io,
|
|
.init_early = sh73a0_init_delay,
|
|
.nr_irqs = NR_IRQS_LEGACY,
|
|
.init_machine = kzm_init,
|
|
.dt_compat = kzm9g_boards_compat_dt,
|
|
MACHINE_END
|