aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-sh7377.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-02-29 07:37:12 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2012-03-12 17:19:41 -0400
commitbfc46f3ef838ab3c01f5e240ec43afaf59f7061b (patch)
tree2d6cfca627035f9ec87829ee3706a2f41f89027f /arch/arm/mach-shmobile/setup-sh7377.c
parent237caf9e6b0c26168acfa7eed0b0afe463918d4f (diff)
ARM: mach-shmobile: sh7377 map_io and init_early update
Update the sh7377 SoC and the G4EVM board to make use of the functions sh7377_map_io() and sh7377_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-sh7377.c')
-rw-r--r--arch/arm/mach-shmobile/setup-sh7377.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh7377.c b/arch/arm/mach-shmobile/setup-sh7377.c
index bb405b8e459b..979cf815c298 100644
--- a/arch/arm/mach-shmobile/setup-sh7377.c
+++ b/arch/arm/mach-shmobile/setup-sh7377.c
@@ -30,9 +30,28 @@
30#include <linux/sh_intc.h> 30#include <linux/sh_intc.h>
31#include <linux/sh_timer.h> 31#include <linux/sh_timer.h>
32#include <mach/hardware.h> 32#include <mach/hardware.h>
33#include <mach/common.h>
34#include <asm/mach/map.h>
33#include <asm/mach-types.h> 35#include <asm/mach-types.h>
34#include <asm/mach/arch.h> 36#include <asm/mach/arch.h>
35 37
38static struct map_desc sh7377_io_desc[] __initdata = {
39 /* create a 1:1 entity map for 0xe6xxxxxx
40 * used by CPGA, INTC and PFC.
41 */
42 {
43 .virtual = 0xe6000000,
44 .pfn = __phys_to_pfn(0xe6000000),
45 .length = 256 << 20,
46 .type = MT_DEVICE_NONSHARED
47 },
48};
49
50void __init sh7377_map_io(void)
51{
52 iotable_init(sh7377_io_desc, ARRAY_SIZE(sh7377_io_desc));
53}
54
36/* SCIFA0 */ 55/* SCIFA0 */
37static struct plat_sci_port scif0_platform_data = { 56static struct plat_sci_port scif0_platform_data = {
38 .mapbase = 0xe6c40000, 57 .mapbase = 0xe6c40000,
@@ -466,4 +485,7 @@ void __init sh7377_add_early_devices(void)
466 485
467 early_platform_add_devices(sh7377_early_devices, 486 early_platform_add_devices(sh7377_early_devices,
468 ARRAY_SIZE(sh7377_early_devices)); 487 ARRAY_SIZE(sh7377_early_devices));
488
489 /* setup early console here as well */
490 shmobile_setup_console();
469} 491}