diff options
author | Magnus Damm <damm@opensource.se> | 2012-02-29 07:37:35 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 17:19:42 -0400 |
commit | d3ab7221489fa188b0e1e9bfe2cc4ecd1d7da933 (patch) | |
tree | de68928b16a10c7c91f8acf7ca277ff9e3fdf27d /arch/arm/mach-shmobile/setup-r8a7740.c | |
parent | 50e15c34f0072324fee9faaae71b129e8b419913 (diff) |
ARM: mach-shmobile: r8a7740 map_io and init_early update
Update the r8a7740 SoC and the Bonito board to make use of
the functions r8a7740_map_io() and r8a7740_add_early_devices().
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7740.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7740.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 986dca6b3fad..dbc30670a27f 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -25,9 +25,41 @@ | |||
25 | #include <linux/serial_sci.h> | 25 | #include <linux/serial_sci.h> |
26 | #include <linux/sh_timer.h> | 26 | #include <linux/sh_timer.h> |
27 | #include <mach/r8a7740.h> | 27 | #include <mach/r8a7740.h> |
28 | #include <mach/common.h> | ||
28 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
30 | #include <asm/mach/map.h> | ||
29 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
30 | 32 | ||
33 | static struct map_desc r8a7740_io_desc[] __initdata = { | ||
34 | /* | ||
35 | * for CPGA/INTC/PFC | ||
36 | * 0xe6000000-0xefffffff -> 0xe6000000-0xefffffff | ||
37 | */ | ||
38 | { | ||
39 | .virtual = 0xe6000000, | ||
40 | .pfn = __phys_to_pfn(0xe6000000), | ||
41 | .length = 160 << 20, | ||
42 | .type = MT_DEVICE_NONSHARED | ||
43 | }, | ||
44 | #ifdef CONFIG_CACHE_L2X0 | ||
45 | /* | ||
46 | * for l2x0_init() | ||
47 | * 0xf0100000-0xf0101000 -> 0xf0002000-0xf0003000 | ||
48 | */ | ||
49 | { | ||
50 | .virtual = 0xf0002000, | ||
51 | .pfn = __phys_to_pfn(0xf0100000), | ||
52 | .length = PAGE_SIZE, | ||
53 | .type = MT_DEVICE_NONSHARED | ||
54 | }, | ||
55 | #endif | ||
56 | }; | ||
57 | |||
58 | void __init r8a7740_map_io(void) | ||
59 | { | ||
60 | iotable_init(r8a7740_io_desc, ARRAY_SIZE(r8a7740_io_desc)); | ||
61 | } | ||
62 | |||
31 | /* SCIFA0 */ | 63 | /* SCIFA0 */ |
32 | static struct plat_sci_port scif0_platform_data = { | 64 | static struct plat_sci_port scif0_platform_data = { |
33 | .mapbase = 0xe6c40000, | 65 | .mapbase = 0xe6c40000, |
@@ -349,4 +381,7 @@ void __init r8a7740_add_early_devices(void) | |||
349 | { | 381 | { |
350 | early_platform_add_devices(r8a7740_early_devices, | 382 | early_platform_add_devices(r8a7740_early_devices, |
351 | ARRAY_SIZE(r8a7740_early_devices)); | 383 | ARRAY_SIZE(r8a7740_early_devices)); |
384 | |||
385 | /* setup early console here as well */ | ||
386 | shmobile_setup_console(); | ||
352 | } | 387 | } |