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-smdk2410.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-smdk2410.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-smdk2410.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index 1e76e1fdfcea..2db932d72c5a 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
@@ -28,7 +28,8 @@ | |||
28 | * Ben Dooks <ben@simtec.co.uk> | 28 | * Ben Dooks <ben@simtec.co.uk> |
29 | * | 29 | * |
30 | * 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA | 30 | * 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA |
31 | * 20-Sep-2005 BJD Added static to non-exported items | 31 | * 20-Sep-2005 BJD Added static to non-exported items |
32 | * 01-Apr-2006 BJD Moved init code to common smdk | ||
32 | * | 33 | * |
33 | ***********************************************************************/ | 34 | ***********************************************************************/ |
34 | 35 | ||
@@ -54,6 +55,8 @@ | |||
54 | #include "devs.h" | 55 | #include "devs.h" |
55 | #include "cpu.h" | 56 | #include "cpu.h" |
56 | 57 | ||
58 | #include "common-smdk.h" | ||
59 | |||
57 | static struct map_desc smdk2410_iodesc[] __initdata = { | 60 | static struct map_desc smdk2410_iodesc[] __initdata = { |
58 | /* nothing here yet */ | 61 | /* nothing here yet */ |
59 | }; | 62 | }; |
@@ -107,11 +110,6 @@ static void __init smdk2410_map_io(void) | |||
107 | s3c24xx_set_board(&smdk2410_board); | 110 | s3c24xx_set_board(&smdk2410_board); |
108 | } | 111 | } |
109 | 112 | ||
110 | static void __init smdk2410_init_irq(void) | ||
111 | { | ||
112 | s3c24xx_init_irq(); | ||
113 | } | ||
114 | |||
115 | MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch | 113 | MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch |
116 | * to SMDK2410 */ | 114 | * to SMDK2410 */ |
117 | /* Maintainer: Jonas Dietsche */ | 115 | /* Maintainer: Jonas Dietsche */ |
@@ -119,7 +117,8 @@ MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switc | |||
119 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 117 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
120 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 118 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
121 | .map_io = smdk2410_map_io, | 119 | .map_io = smdk2410_map_io, |
122 | .init_irq = smdk2410_init_irq, | 120 | .init_irq = s3c24xx_init_irq, |
121 | .init_machine = smdk_machine_init, | ||
123 | .timer = &s3c24xx_timer, | 122 | .timer = &s3c24xx_timer, |
124 | MACHINE_END | 123 | MACHINE_END |
125 | 124 | ||