Commit | Line | Data |
---|---|---|
7f627f03 MD |
1 | /* |
2 | * Emma Mobile EV2 processor support | |
3 | * | |
4 | * Copyright (C) 2012 Magnus Damm | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation; version 2 of the License. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
7f627f03 MD |
14 | */ |
15 | #include <linux/kernel.h> | |
16 | #include <linux/init.h> | |
af164ca3 | 17 | #include <linux/mm.h> |
7f627f03 MD |
18 | #include <asm/mach-types.h> |
19 | #include <asm/mach/arch.h> | |
20 | #include <asm/mach/map.h> | |
fd44aa5e | 21 | #include "common.h" |
7f627f03 | 22 | |
bd5a875d MD |
23 | static struct map_desc emev2_io_desc[] __initdata = { |
24 | #ifdef CONFIG_SMP | |
bd5a875d MD |
25 | /* 2M mapping for SCU + L2 controller */ |
26 | { | |
27 | .virtual = 0xf0000000, | |
28 | .pfn = __phys_to_pfn(0x1e000000), | |
29 | .length = SZ_2M, | |
30 | .type = MT_DEVICE | |
31 | }, | |
32 | #endif | |
33 | }; | |
34 | ||
505891ec | 35 | static void __init emev2_map_io(void) |
bd5a875d MD |
36 | { |
37 | iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); | |
38 | } | |
39 | ||
543c5040 | 40 | static const char *const emev2_boards_compat_dt[] __initconst = { |
3d5de271 MD |
41 | "renesas,emev2", |
42 | NULL, | |
43 | }; | |
44 | ||
505891ec MD |
45 | extern struct smp_operations emev2_smp_ops; |
46 | ||
3d5de271 | 47 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") |
a62580e5 | 48 | .smp = smp_ops(emev2_smp_ops), |
0ea2b538 | 49 | .map_io = emev2_map_io, |
ef9026e6 | 50 | .init_early = shmobile_init_delay, |
3f348e1c | 51 | .init_late = shmobile_init_late, |
3d5de271 MD |
52 | .dt_compat = emev2_boards_compat_dt, |
53 | MACHINE_END |