diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/mach-smdk2413.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-smdk2413.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2413.c b/arch/arm/mach-s3c24xx/mach-smdk2413.c index 233fe52d2015..fb3b80e44595 100644 --- a/arch/arm/mach-s3c24xx/mach-smdk2413.c +++ b/arch/arm/mach-s3c24xx/mach-smdk2413.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/serial_s3c.h> | 22 | #include <linux/serial_s3c.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/memblock.h> | ||
25 | 26 | ||
26 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
@@ -93,24 +94,26 @@ static struct platform_device *smdk2413_devices[] __initdata = { | |||
93 | &s3c2412_device_dma, | 94 | &s3c2412_device_dma, |
94 | }; | 95 | }; |
95 | 96 | ||
96 | static void __init smdk2413_fixup(struct tag *tags, char **cmdline, | 97 | static void __init smdk2413_fixup(struct tag *tags, char **cmdline) |
97 | struct meminfo *mi) | ||
98 | { | 98 | { |
99 | if (tags != phys_to_virt(S3C2410_SDRAM_PA + 0x100)) { | 99 | if (tags != phys_to_virt(S3C2410_SDRAM_PA + 0x100)) { |
100 | mi->nr_banks=1; | 100 | memblock_add(0x30000000, SZ_64M); |
101 | mi->bank[0].start = 0x30000000; | ||
102 | mi->bank[0].size = SZ_64M; | ||
103 | } | 101 | } |
104 | } | 102 | } |
105 | 103 | ||
106 | static void __init smdk2413_map_io(void) | 104 | static void __init smdk2413_map_io(void) |
107 | { | 105 | { |
108 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); | 106 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); |
109 | s3c24xx_init_clocks(12000000); | ||
110 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); | 107 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); |
111 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 108 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
112 | } | 109 | } |
113 | 110 | ||
111 | static void __init smdk2413_init_time(void) | ||
112 | { | ||
113 | s3c2412_init_clocks(12000000); | ||
114 | samsung_timer_init(); | ||
115 | } | ||
116 | |||
114 | static void __init smdk2413_machine_init(void) | 117 | static void __init smdk2413_machine_init(void) |
115 | { /* Turn off suspend on both USB ports, and switch the | 118 | { /* Turn off suspend on both USB ports, and switch the |
116 | * selectable USB port to USB device mode. */ | 119 | * selectable USB port to USB device mode. */ |
@@ -159,6 +162,6 @@ MACHINE_START(SMDK2413, "SMDK2413") | |||
159 | .init_irq = s3c2412_init_irq, | 162 | .init_irq = s3c2412_init_irq, |
160 | .map_io = smdk2413_map_io, | 163 | .map_io = smdk2413_map_io, |
161 | .init_machine = smdk2413_machine_init, | 164 | .init_machine = smdk2413_machine_init, |
162 | .init_time = samsung_timer_init, | 165 | .init_time = smdk2413_init_time, |
163 | .restart = s3c2412_restart, | 166 | .restart = s3c2412_restart, |
164 | MACHINE_END | 167 | MACHINE_END |