diff options
author | Ben Dooks <ben-linux@fluff.org> | 2006-04-01 12:33:42 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-04-01 12:33:42 -0500 |
commit | d3f4c571b6e596f9d39c596426269006a309d3b8 (patch) | |
tree | 291d0f60e379f1fa1b26941c75bd9354f2e7a708 /arch/arm/mach-s3c2410/mach-smdk2440.c | |
parent | 532bda5d9cd2f94a9e374765c23858c7d8641f66 (diff) |
[ARM] 3440/1: [S3C2410] make SMDK2410 and SMDK2440 similarities common
Patch from Ben Dooks
The SMDK2410 and SMDK2440 boards have a number of items
in common, including the LEDs, Ethernet, PCMCIA. Make
a common SMDK support file.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-smdk2440.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-smdk2440.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-s3c2410/mach-smdk2440.c b/arch/arm/mach-s3c2410/mach-smdk2440.c index f4315721c3b8..5fffd1d51047 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2440.c +++ b/arch/arm/mach-s3c2410/mach-smdk2440.c | |||
@@ -53,7 +53,8 @@ | |||
53 | #include "clock.h" | 53 | #include "clock.h" |
54 | #include "devs.h" | 54 | #include "devs.h" |
55 | #include "cpu.h" | 55 | #include "cpu.h" |
56 | #include "pm.h" | 56 | |
57 | #include "common-smdk.h" | ||
57 | 58 | ||
58 | static struct map_desc smdk2440_iodesc[] __initdata = { | 59 | static struct map_desc smdk2440_iodesc[] __initdata = { |
59 | /* ISA IO Space map (memory space selected by A24) */ | 60 | /* ISA IO Space map (memory space selected by A24) */ |
@@ -197,21 +198,9 @@ static void __init smdk2440_map_io(void) | |||
197 | 198 | ||
198 | static void __init smdk2440_machine_init(void) | 199 | static void __init smdk2440_machine_init(void) |
199 | { | 200 | { |
200 | /* Configure the LEDs (even if we have no LED support)*/ | ||
201 | |||
202 | s3c2410_gpio_cfgpin(S3C2410_GPF4, S3C2410_GPF4_OUTP); | ||
203 | s3c2410_gpio_cfgpin(S3C2410_GPF5, S3C2410_GPF5_OUTP); | ||
204 | s3c2410_gpio_cfgpin(S3C2410_GPF6, S3C2410_GPF6_OUTP); | ||
205 | s3c2410_gpio_cfgpin(S3C2410_GPF7, S3C2410_GPF7_OUTP); | ||
206 | |||
207 | s3c2410_gpio_setpin(S3C2410_GPF4, 0); | ||
208 | s3c2410_gpio_setpin(S3C2410_GPF5, 0); | ||
209 | s3c2410_gpio_setpin(S3C2410_GPF6, 0); | ||
210 | s3c2410_gpio_setpin(S3C2410_GPF7, 0); | ||
211 | |||
212 | s3c24xx_fb_set_platdata(&smdk2440_lcd_cfg); | 201 | s3c24xx_fb_set_platdata(&smdk2440_lcd_cfg); |
213 | 202 | ||
214 | s3c2410_pm_init(); | 203 | smdk_machine_init(); |
215 | } | 204 | } |
216 | 205 | ||
217 | MACHINE_START(S3C2440, "SMDK2440") | 206 | MACHINE_START(S3C2440, "SMDK2440") |