diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-02 20:46:56 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-05 22:14:59 -0400 |
commit | 0523ec3a685573730dbd619544c46465f5df6147 (patch) | |
tree | 915682238fbb8e36f2e97068bfbb7b42ddf81346 /arch/arm | |
parent | 61c542bfda19c842e0bf12aa4cd1a5b23130f388 (diff) |
ARM: S3C64XX: To merge devs.c files to one devs.c
This patch moves regarding s3c64xx dev files to one devs.c
file in plat-samsung directory and this help to keep it more
easily.
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c64xx/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-onenand1.c | 53 | ||||
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 35 |
3 files changed, 35 insertions, 55 deletions
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 902ab9ace93b..cfc0b9941808 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -61,5 +61,3 @@ obj-$(CONFIG_MACH_WLF_CRAGG_6410) += mach-crag6410.o mach-crag6410-module.o | |||
61 | obj-y += dev-uart.o | 61 | obj-y += dev-uart.o |
62 | obj-y += dev-audio.o | 62 | obj-y += dev-audio.o |
63 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | 63 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o |
64 | obj-$(CONFIG_S3C64XX_DEV_TS) += dev-ts.o | ||
65 | obj-$(CONFIG_S3C64XX_DEV_ONENAND1) += dev-onenand1.o | ||
diff --git a/arch/arm/mach-s3c64xx/dev-onenand1.c b/arch/arm/mach-s3c64xx/dev-onenand1.c deleted file mode 100644 index 999f9e17a1e4..000000000000 --- a/arch/arm/mach-s3c64xx/dev-onenand1.c +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-s3c64xx/dev-onenand1.c | ||
3 | * | ||
4 | * Copyright (c) 2008-2010 Samsung Electronics | ||
5 | * Kyungmin Park <kyungmin.park@samsung.com> | ||
6 | * | ||
7 | * S3C64XX series device definition for OneNAND devices | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/mtd/mtd.h> | ||
17 | #include <linux/mtd/onenand.h> | ||
18 | |||
19 | #include <mach/irqs.h> | ||
20 | #include <mach/map.h> | ||
21 | |||
22 | #include <plat/devs.h> | ||
23 | |||
24 | static struct resource s3c64xx_onenand1_resources[] = { | ||
25 | [0] = { | ||
26 | .start = S3C64XX_PA_ONENAND1, | ||
27 | .end = S3C64XX_PA_ONENAND1 + 0x400 - 1, | ||
28 | .flags = IORESOURCE_MEM, | ||
29 | }, | ||
30 | [1] = { | ||
31 | .start = S3C64XX_PA_ONENAND1_BUF, | ||
32 | .end = S3C64XX_PA_ONENAND1_BUF + S3C64XX_SZ_ONENAND1_BUF - 1, | ||
33 | .flags = IORESOURCE_MEM, | ||
34 | }, | ||
35 | [2] = { | ||
36 | .start = IRQ_ONENAND1, | ||
37 | .end = IRQ_ONENAND1, | ||
38 | .flags = IORESOURCE_IRQ, | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | struct platform_device s3c64xx_device_onenand1 = { | ||
43 | .name = "samsung-onenand", | ||
44 | .id = 1, | ||
45 | .num_resources = ARRAY_SIZE(s3c64xx_onenand1_resources), | ||
46 | .resource = s3c64xx_onenand1_resources, | ||
47 | }; | ||
48 | |||
49 | void s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) | ||
50 | { | ||
51 | s3c_set_platdata(pdata, sizeof(struct onenand_platform_data), | ||
52 | &s3c64xx_device_onenand1); | ||
53 | } | ||
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index f87bc9845d95..7a00dee89ebb 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
23 | #include <linux/string.h> | 23 | #include <linux/string.h> |
24 | #include <linux/dma-mapping.h> | 24 | #include <linux/dma-mapping.h> |
25 | #include <linux/mtd/mtd.h> | ||
26 | #include <linux/mtd/onenand.h> | ||
25 | 27 | ||
26 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
27 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
@@ -225,6 +227,39 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd) | |||
225 | } | 227 | } |
226 | #endif /* CONFIG_PLAT_S3C24XX */ | 228 | #endif /* CONFIG_PLAT_S3C24XX */ |
227 | 229 | ||
230 | #ifdef CONFIG_S3C64XX_DEV_ONENAND1 | ||
231 | static struct resource s3c64xx_onenand1_resources[] = { | ||
232 | [0] = { | ||
233 | .start = S3C64XX_PA_ONENAND1, | ||
234 | .end = S3C64XX_PA_ONENAND1 + 0x400 - 1, | ||
235 | .flags = IORESOURCE_MEM, | ||
236 | }, | ||
237 | [1] = { | ||
238 | .start = S3C64XX_PA_ONENAND1_BUF, | ||
239 | .end = S3C64XX_PA_ONENAND1_BUF + S3C64XX_SZ_ONENAND1_BUF - 1, | ||
240 | .flags = IORESOURCE_MEM, | ||
241 | }, | ||
242 | [2] = { | ||
243 | .start = IRQ_ONENAND1, | ||
244 | .end = IRQ_ONENAND1, | ||
245 | .flags = IORESOURCE_IRQ, | ||
246 | }, | ||
247 | }; | ||
248 | |||
249 | struct platform_device s3c64xx_device_onenand1 = { | ||
250 | .name = "samsung-onenand", | ||
251 | .id = 1, | ||
252 | .num_resources = ARRAY_SIZE(s3c64xx_onenand1_resources), | ||
253 | .resource = s3c64xx_onenand1_resources, | ||
254 | }; | ||
255 | |||
256 | void s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) | ||
257 | { | ||
258 | s3c_set_platdata(pdata, sizeof(struct onenand_platform_data), | ||
259 | &s3c64xx_device_onenand1); | ||
260 | } | ||
261 | #endif /* CONFIG_S3C64XX_DEV_ONENAND1 */ | ||
262 | |||
228 | /* RTC */ | 263 | /* RTC */ |
229 | 264 | ||
230 | #ifdef CONFIG_PLAT_S3C24XX | 265 | #ifdef CONFIG_PLAT_S3C24XX |