diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-05-12 03:12:25 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-05-12 03:12:25 -0400 |
commit | 940e46ae23ccf908925a4229b34ba1feb8758545 (patch) | |
tree | 8a82b2fd23324407217772161ec9faaba2385a8c /arch/arm/mach-s3c24xx | |
parent | f8dadf5dbef26f12aba661405369dea605acf4ee (diff) |
ARM: S3C24XX: Use common macro to define resources on mach-vr1000.c
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-vr1000.c | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-vr1000.c b/arch/arm/mach-s3c24xx/mach-vr1000.c index 87608d45dac4..bd5f189f0424 100644 --- a/arch/arm/mach-s3c24xx/mach-vr1000.c +++ b/arch/arm/mach-s3c24xx/mach-vr1000.c | |||
@@ -187,40 +187,17 @@ static struct platform_device serial_device = { | |||
187 | /* DM9000 ethernet devices */ | 187 | /* DM9000 ethernet devices */ |
188 | 188 | ||
189 | static struct resource vr1000_dm9k0_resource[] = { | 189 | static struct resource vr1000_dm9k0_resource[] = { |
190 | [0] = { | 190 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000, 4), |
191 | .start = S3C2410_CS5 + VR1000_PA_DM9000, | 191 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0x40, 0x40), |
192 | .end = S3C2410_CS5 + VR1000_PA_DM9000 + 3, | 192 | [2] = DEFINE_RES_NAMED(IRQ_VR1000_DM9000A, 1, NULL, IORESOURCE_IRQ \ |
193 | .flags = IORESOURCE_MEM | 193 | | IORESOURCE_IRQ_HIGHLEVEL), |
194 | }, | ||
195 | [1] = { | ||
196 | .start = S3C2410_CS5 + VR1000_PA_DM9000 + 0x40, | ||
197 | .end = S3C2410_CS5 + VR1000_PA_DM9000 + 0x7f, | ||
198 | .flags = IORESOURCE_MEM | ||
199 | }, | ||
200 | [2] = { | ||
201 | .start = IRQ_VR1000_DM9000A, | ||
202 | .end = IRQ_VR1000_DM9000A, | ||
203 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
204 | } | ||
205 | |||
206 | }; | 194 | }; |
207 | 195 | ||
208 | static struct resource vr1000_dm9k1_resource[] = { | 196 | static struct resource vr1000_dm9k1_resource[] = { |
209 | [0] = { | 197 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0x80, 4), |
210 | .start = S3C2410_CS5 + VR1000_PA_DM9000 + 0x80, | 198 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0xC0, 0x40), |
211 | .end = S3C2410_CS5 + VR1000_PA_DM9000 + 0x83, | 199 | [2] = DEFINE_RES_NAMED(IRQ_VR1000_DM9000N, 1, NULL, IORESOURCE_IRQ \ |
212 | .flags = IORESOURCE_MEM | 200 | | IORESOURCE_IRQ_HIGHLEVEL), |
213 | }, | ||
214 | [1] = { | ||
215 | .start = S3C2410_CS5 + VR1000_PA_DM9000 + 0xC0, | ||
216 | .end = S3C2410_CS5 + VR1000_PA_DM9000 + 0xFF, | ||
217 | .flags = IORESOURCE_MEM | ||
218 | }, | ||
219 | [2] = { | ||
220 | .start = IRQ_VR1000_DM9000N, | ||
221 | .end = IRQ_VR1000_DM9000N, | ||
222 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
223 | } | ||
224 | }; | 201 | }; |
225 | 202 | ||
226 | /* for the moment we limit ourselves to 16bit IO until some | 203 | /* for the moment we limit ourselves to 16bit IO until some |