Peter Korsgaard | 14077ea | 2009-07-01 17:47:06 +0200 | [diff] [blame] | 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); |