diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-08-14 15:24:06 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-08-14 15:24:06 +0100 |
commit | b282e29b547937d1610f38d6aa1c485426b62650 (patch) | |
tree | 62741a6d17e910e7b77a5cc4e94c44b7e587645c /arch/arm/plat-s3c/dev-nand.c | |
parent | c378aa275e1476218a6b438056a4cd48eb1eca0f (diff) | |
parent | c233d94931cebc8ec805fb98856f34ad16d49e4f (diff) |
Merge branch 'next-s3c64xx-moves' into next-s3c
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 00000000000..4e532373243 --- /dev/null +++ b/arch/arm/plat-s3c/dev-nand.c @@ -0,0 +1,30 @@ +/* + * S3C series device definition for nand device + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/platform_device.h> + +#include <mach/map.h> +#include <plat/devs.h> + +static struct resource s3c_nand_resource[] = { + [0] = { + .start = S3C_PA_NAND, + .end = S3C_PA_NAND + SZ_1M, + .flags = IORESOURCE_MEM, + } +}; + +struct platform_device s3c_device_nand = { + .name = "s3c2410-nand", + .id = -1, + .num_resources = ARRAY_SIZE(s3c_nand_resource), + .resource = s3c_nand_resource, +}; + +EXPORT_SYMBOL(s3c_device_nand); |