aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-05-12 03:12:21 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 03:12:21 -0400
commitd1c14938b78e80cfd7323432e06b75bbaef2a1f9 (patch)
tree62ae11548b8aca61443d056e9e2d2cd7e091a866 /arch/arm/mach-s3c24xx
parent7d4aa909c8f5557980733b644ed66b067a669bc0 (diff)
ARM: S3C24XX: Use common macro to define resources on mach-anubis.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-anubis.c62
1 files changed, 11 insertions, 51 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-anubis.c b/arch/arm/mach-s3c24xx/mach-anubis.c
index 60c72c54c21e..5a7d0c0010f7 100644
--- a/arch/arm/mach-s3c24xx/mach-anubis.c
+++ b/arch/arm/mach-s3c24xx/mach-anubis.c
@@ -235,19 +235,9 @@ static struct pata_platform_info anubis_ide_platdata = {
235}; 235};
236 236
237static struct resource anubis_ide0_resource[] = { 237static struct resource anubis_ide0_resource[] = {
238 { 238 [0] = DEFINE_RES_MEM(S3C2410_CS3, 8 * 32),
239 .start = S3C2410_CS3, 239 [2] = DEFINE_RES_MEM(S3C2410_CS3 + (1 << 26) + (6 * 32), 32),
240 .end = S3C2410_CS3 + (8*32) - 1, 240 [3] = DEFINE_RES_IRQ(IRQ_IDE0),
241 .flags = IORESOURCE_MEM,
242 }, {
243 .start = S3C2410_CS3 + (1<<26) + (6*32),
244 .end = S3C2410_CS3 + (1<<26) + (7*32) - 1,
245 .flags = IORESOURCE_MEM,
246 }, {
247 .start = IRQ_IDE0,
248 .end = IRQ_IDE0,
249 .flags = IORESOURCE_IRQ,
250 },
251}; 241};
252 242
253static struct platform_device anubis_device_ide0 = { 243static struct platform_device anubis_device_ide0 = {
@@ -262,19 +252,9 @@ static struct platform_device anubis_device_ide0 = {
262}; 252};
263 253
264static struct resource anubis_ide1_resource[] = { 254static struct resource anubis_ide1_resource[] = {
265 { 255 [0] = DEFINE_RES_MEM(S3C2410_CS4, 8 * 32),
266 .start = S3C2410_CS4, 256 [1] = DEFINE_RES_MEM(S3C2410_CS4 + (1 << 26) + (6 * 32), 32),
267 .end = S3C2410_CS4 + (8*32) - 1, 257 [2] = DEFINE_RES_IRQ(IRQ_IDE0),
268 .flags = IORESOURCE_MEM,
269 }, {
270 .start = S3C2410_CS4 + (1<<26) + (6*32),
271 .end = S3C2410_CS4 + (1<<26) + (7*32) - 1,
272 .flags = IORESOURCE_MEM,
273 }, {
274 .start = IRQ_IDE0,
275 .end = IRQ_IDE0,
276 .flags = IORESOURCE_IRQ,
277 },
278}; 258};
279 259
280static struct platform_device anubis_device_ide1 = { 260static struct platform_device anubis_device_ide1 = {
@@ -298,16 +278,8 @@ static struct ax_plat_data anubis_asix_platdata = {
298}; 278};
299 279
300static struct resource anubis_asix_resource[] = { 280static struct resource anubis_asix_resource[] = {
301 [0] = { 281 [0] = DEFINE_RES_MEM(S3C2410_CS5, 0x20 * 0x20),
302 .start = S3C2410_CS5, 282 [1] = DEFINE_RES_IRQ(IRQ_ASIX),
303 .end = S3C2410_CS5 + (0x20 * 0x20) -1,
304 .flags = IORESOURCE_MEM
305 },
306 [1] = {
307 .start = IRQ_ASIX,
308 .end = IRQ_ASIX,
309 .flags = IORESOURCE_IRQ
310 }
311}; 283};
312 284
313static struct platform_device anubis_device_asix = { 285static struct platform_device anubis_device_asix = {
@@ -323,21 +295,9 @@ static struct platform_device anubis_device_asix = {
323/* SM501 */ 295/* SM501 */
324 296
325static struct resource anubis_sm501_resource[] = { 297static struct resource anubis_sm501_resource[] = {
326 [0] = { 298 [0] = DEFINE_RES_MEM(S3C2410_CS2, SZ_8M),
327 .start = S3C2410_CS2, 299 [1] = DEFINE_RES_MEM(S3C2410_CS2 + SZ_64M - SZ_2M, SZ_2M),
328 .end = S3C2410_CS2 + SZ_8M, 300 [2] = DEFINE_RES_IRQ(IRQ_EINT0),
329 .flags = IORESOURCE_MEM,
330 },
331 [1] = {
332 .start = S3C2410_CS2 + SZ_64M - SZ_2M,
333 .end = S3C2410_CS2 + SZ_64M - 1,
334 .flags = IORESOURCE_MEM,
335 },
336 [2] = {
337 .start = IRQ_EINT0,
338 .end = IRQ_EINT0,
339 .flags = IORESOURCE_IRQ,
340 },
341}; 301};
342 302
343static struct sm501_initdata anubis_sm501_initdata = { 303static struct sm501_initdata anubis_sm501_initdata = {