2012-05-16 08:44:58 +02:00
|
|
|
/*
|
|
|
|
* Emma Mobile EV2 processor support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Magnus Damm
|
|
|
|
*
|
|
|
|
* 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/kernel.h>
|
|
|
|
#include <linux/init.h>
|
2014-06-05 07:32:12 +02:00
|
|
|
#include <linux/mm.h>
|
2012-05-16 08:44:58 +02:00
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach/map.h>
|
2014-06-17 09:47:37 +02:00
|
|
|
#include "common.h"
|
2012-05-16 08:44:58 +02:00
|
|
|
|
2012-05-16 08:45:25 +02:00
|
|
|
static struct map_desc emev2_io_desc[] __initdata = {
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
/* 2M mapping for SCU + L2 controller */
|
|
|
|
{
|
|
|
|
.virtual = 0xf0000000,
|
|
|
|
.pfn = __phys_to_pfn(0x1e000000),
|
|
|
|
.length = SZ_2M,
|
|
|
|
.type = MT_DEVICE
|
|
|
|
},
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
2014-02-17 08:35:08 +01:00
|
|
|
static void __init emev2_map_io(void)
|
2012-05-16 08:45:25 +02:00
|
|
|
{
|
|
|
|
iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc));
|
|
|
|
}
|
|
|
|
|
2015-02-18 21:01:45 +01:00
|
|
|
static const char *const emev2_boards_compat_dt[] __initconst = {
|
2012-05-16 08:45:54 +02:00
|
|
|
"renesas,emev2",
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2014-02-17 08:35:08 +01:00
|
|
|
extern struct smp_operations emev2_smp_ops;
|
|
|
|
|
2012-05-16 08:45:54 +02:00
|
|
|
DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
|
2011-09-08 14:15:22 +02:00
|
|
|
.smp = smp_ops(emev2_smp_ops),
|
2013-07-02 11:28:22 +02:00
|
|
|
.map_io = emev2_map_io,
|
2014-06-05 07:32:04 +02:00
|
|
|
.init_early = shmobile_init_delay,
|
2013-11-07 00:21:20 +01:00
|
|
|
.init_late = shmobile_init_late,
|
2012-05-16 08:45:54 +02:00
|
|
|
.dt_compat = emev2_boards_compat_dt,
|
|
|
|
MACHINE_END
|