diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-07-01 11:47:06 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-07-30 19:10:24 -0400 |
commit | 14077ea63b5aea1db0142c1085d24aa0d11b9d36 (patch) | |
tree | 110e40969a8cde0f3b1dd3da3bb553091412ed36 /arch/arm/plat-s3c/dev-nand.c | |
parent | 9b71de49b030ad8fd4d13d38571b5c42dc9ed8dd (diff) |
ARM: S3C: move s3c_device_nand from plat-s3c24xx to plat-s3c
Move the s3c_device_nand platform device from plat-s3c24xx to plat-s3c,
now that the nand driver also support the s3c64xx devices.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/dev-nand.c')
-rw-r--r-- | arch/arm/plat-s3c/dev-nand.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/dev-nand.c b/arch/arm/plat-s3c/dev-nand.c new file mode 100644 index 000000000000..4e5323732434 --- /dev/null +++ b/arch/arm/plat-s3c/dev-nand.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * S3C series device definition for nand device | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/platform_device.h> | ||
11 | |||
12 | #include <mach/map.h> | ||
13 | #include <plat/devs.h> | ||
14 | |||
15 | static struct resource s3c_nand_resource[] = { | ||
16 | [0] = { | ||
17 | .start = S3C_PA_NAND, | ||
18 | .end = S3C_PA_NAND + SZ_1M, | ||
19 | .flags = IORESOURCE_MEM, | ||
20 | } | ||
21 | }; | ||
22 | |||
23 | struct platform_device s3c_device_nand = { | ||
24 | .name = "s3c2410-nand", | ||
25 | .id = -1, | ||
26 | .num_resources = ARRAY_SIZE(s3c_nand_resource), | ||
27 | .resource = s3c_nand_resource, | ||
28 | }; | ||
29 | |||
30 | EXPORT_SYMBOL(s3c_device_nand); | ||