diff options
Diffstat (limited to 'arch/arm/mach-shmobile/setup-sh7372.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index cccf91b8fae1..5375325d7ca7 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -33,8 +33,28 @@ | |||
33 | #include <linux/pm_domain.h> | 33 | #include <linux/pm_domain.h> |
34 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
35 | #include <mach/sh7372.h> | 35 | #include <mach/sh7372.h> |
36 | #include <mach/common.h> | ||
37 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
37 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/time.h> | ||
41 | |||
42 | static struct map_desc sh7372_io_desc[] __initdata = { | ||
43 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
44 | * used by CPGA, INTC and PFC. | ||
45 | */ | ||
46 | { | ||
47 | .virtual = 0xe6000000, | ||
48 | .pfn = __phys_to_pfn(0xe6000000), | ||
49 | .length = 256 << 20, | ||
50 | .type = MT_DEVICE_NONSHARED | ||
51 | }, | ||
52 | }; | ||
53 | |||
54 | void __init sh7372_map_io(void) | ||
55 | { | ||
56 | iotable_init(sh7372_io_desc, ARRAY_SIZE(sh7372_io_desc)); | ||
57 | } | ||
38 | 58 | ||
39 | /* SCIFA0 */ | 59 | /* SCIFA0 */ |
40 | static struct plat_sci_port scif0_platform_data = { | 60 | static struct plat_sci_port scif0_platform_data = { |
@@ -1047,8 +1067,20 @@ void __init sh7372_add_standard_devices(void) | |||
1047 | sh7372_add_device_to_domain(&sh7372_a4r, &tmu01_device); | 1067 | sh7372_add_device_to_domain(&sh7372_a4r, &tmu01_device); |
1048 | } | 1068 | } |
1049 | 1069 | ||
1070 | static void __init sh7372_earlytimer_init(void) | ||
1071 | { | ||
1072 | sh7372_clock_init(); | ||
1073 | shmobile_earlytimer_init(); | ||
1074 | } | ||
1075 | |||
1050 | void __init sh7372_add_early_devices(void) | 1076 | void __init sh7372_add_early_devices(void) |
1051 | { | 1077 | { |
1052 | early_platform_add_devices(sh7372_early_devices, | 1078 | early_platform_add_devices(sh7372_early_devices, |
1053 | ARRAY_SIZE(sh7372_early_devices)); | 1079 | ARRAY_SIZE(sh7372_early_devices)); |
1080 | |||
1081 | /* setup early console here as well */ | ||
1082 | shmobile_setup_console(); | ||
1083 | |||
1084 | /* override timer setup with soc-specific code */ | ||
1085 | shmobile_timer.init = sh7372_earlytimer_init; | ||
1054 | } | 1086 | } |