aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-emev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/setup-emev2.c')
-rw-r--r--arch/arm/mach-shmobile/setup-emev2.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c
index e4b46930db52..1553af8e04ff 100644
--- a/arch/arm/mach-shmobile/setup-emev2.c
+++ b/arch/arm/mach-shmobile/setup-emev2.c
@@ -38,13 +38,6 @@
38 38
39static struct map_desc emev2_io_desc[] __initdata = { 39static struct map_desc emev2_io_desc[] __initdata = {
40#ifdef CONFIG_SMP 40#ifdef CONFIG_SMP
41 /* 128K entity map for 0xe0100000 (SMU) */
42 {
43 .virtual = 0xe0100000,
44 .pfn = __phys_to_pfn(0xe0100000),
45 .length = SZ_128K,
46 .type = MT_DEVICE
47 },
48 /* 2M mapping for SCU + L2 controller */ 41 /* 2M mapping for SCU + L2 controller */
49 { 42 {
50 .virtual = 0xf0000000, 43 .virtual = 0xf0000000,
@@ -182,7 +175,8 @@ static struct resource pmu_resources[] = {
182 175
183void __init emev2_add_standard_devices(void) 176void __init emev2_add_standard_devices(void)
184{ 177{
185 emev2_clock_init(); 178 if (!IS_ENABLED(CONFIG_COMMON_CLK))
179 emev2_clock_init();
186 180
187 emev2_register_uart(0); 181 emev2_register_uart(0);
188 emev2_register_uart(1); 182 emev2_register_uart(1);
@@ -202,20 +196,6 @@ void __init emev2_init_delay(void)
202 shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ 196 shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
203} 197}
204 198
205void __init emev2_init_irq(void)
206{
207 void __iomem *gic_dist_base;
208 void __iomem *gic_cpu_base;
209
210 /* Static mappings, never released */
211 gic_dist_base = ioremap(0xe0028000, PAGE_SIZE);
212 gic_cpu_base = ioremap(0xe0020000, PAGE_SIZE);
213 BUG_ON(!gic_dist_base || !gic_cpu_base);
214
215 /* Use GIC to handle interrupts */
216 gic_init(0, 29, gic_dist_base, gic_cpu_base);
217}
218
219#ifdef CONFIG_USE_OF 199#ifdef CONFIG_USE_OF
220 200
221static const char *emev2_boards_compat_dt[] __initdata = { 201static const char *emev2_boards_compat_dt[] __initdata = {
@@ -225,8 +205,8 @@ static const char *emev2_boards_compat_dt[] __initdata = {
225 205
226DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") 206DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
227 .smp = smp_ops(emev2_smp_ops), 207 .smp = smp_ops(emev2_smp_ops),
208 .map_io = emev2_map_io,
228 .init_early = emev2_init_delay, 209 .init_early = emev2_init_delay,
229 .nr_irqs = NR_IRQS_LEGACY,
230 .dt_compat = emev2_boards_compat_dt, 210 .dt_compat = emev2_boards_compat_dt,
231MACHINE_END 211MACHINE_END
232 212