dev-nand.c 705 B

123456789101112131415161718192021222324252627282930
  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. #include <linux/kernel.h>
  9. #include <linux/platform_device.h>
  10. #include <mach/map.h>
  11. #include <plat/devs.h>
  12. static struct resource s3c_nand_resource[] = {
  13. [0] = {
  14. .start = S3C_PA_NAND,
  15. .end = S3C_PA_NAND + SZ_1M,
  16. .flags = IORESOURCE_MEM,
  17. }
  18. };
  19. struct platform_device s3c_device_nand = {
  20. .name = "s3c2410-nand",
  21. .id = -1,
  22. .num_resources = ARRAY_SIZE(s3c_nand_resource),
  23. .resource = s3c_nand_resource,
  24. };
  25. EXPORT_SYMBOL(s3c_device_nand);