2012-11-21 08:34:25 -07:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <linux/input.h>
|
|
|
|
#include <linux/of_platform.h>
|
2014-06-20 10:53:09 -06:00
|
|
|
|
2012-11-21 08:34:25 -07:00
|
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
2014-06-20 10:53:09 -06:00
|
|
|
|
2014-06-17 01:47:37 -06:00
|
|
|
#include "common.h"
|
2014-06-20 10:53:09 -06:00
|
|
|
#include "sh73a0.h"
|
2012-11-21 08:34:25 -07:00
|
|
|
|
|
|
|
static void __init kzm_init(void)
|
|
|
|
{
|
|
|
|
sh73a0_add_standard_devices_dt();
|
2013-02-08 11:38:27 -07:00
|
|
|
|
2012-11-21 08:34:25 -07:00
|
|
|
#ifdef CONFIG_CACHE_L2X0
|
2014-03-19 06:44:41 -06:00
|
|
|
/* Shared attribute override enable, 64K*8way */
|
2014-03-19 06:16:36 -06:00
|
|
|
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
|
2012-11-21 08:34:25 -07:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2014-11-07 06:46:32 -07:00
|
|
|
#define RESCNT2 IOMEM(0xe6188020)
|
|
|
|
static void kzm9g_restart(enum reboot_mode mode, const char *cmd)
|
|
|
|
{
|
|
|
|
/* Do soft power on reset */
|
|
|
|
writel((1 << 31), RESCNT2);
|
|
|
|
}
|
|
|
|
|
2012-11-21 08:34:25 -07:00
|
|
|
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,
|
2014-08-20 07:03:30 -06:00
|
|
|
.init_early = shmobile_init_delay,
|
2012-11-21 08:34:25 -07:00
|
|
|
.init_machine = kzm_init,
|
2014-07-30 17:32:24 -06:00
|
|
|
.init_late = shmobile_init_late,
|
2014-11-07 06:46:32 -07:00
|
|
|
.restart = kzm9g_restart,
|
2012-11-21 08:34:25 -07:00
|
|
|
.dt_compat = kzm9g_boards_compat_dt,
|
|
|
|
MACHINE_END
|