dev-onenand.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * linux/arch/arm/plat-samsung/dev-onenand.c
  3. *
  4. * Copyright (c) 2008-2010 Samsung Electronics
  5. * Kyungmin Park <kyungmin.park@samsung.com>
  6. *
  7. * S3C64XX/S5PC100 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. #include <linux/kernel.h>
  14. #include <linux/platform_device.h>
  15. #include <mach/irqs.h>
  16. #include <mach/map.h>
  17. static struct resource s3c_onenand_resources[] = {
  18. [0] = {
  19. .start = S3C_PA_ONENAND,
  20. .end = S3C_PA_ONENAND + 0x400 - 1,
  21. .flags = IORESOURCE_MEM,
  22. },
  23. [1] = {
  24. .start = S3C_PA_ONENAND_BUF,
  25. .end = S3C_PA_ONENAND_BUF + S3C_SZ_ONENAND_BUF - 1,
  26. .flags = IORESOURCE_MEM,
  27. },
  28. [2] = {
  29. .start = IRQ_ONENAND,
  30. .end = IRQ_ONENAND,
  31. .flags = IORESOURCE_IRQ,
  32. },
  33. };
  34. struct platform_device s3c_device_onenand = {
  35. .name = "samsung-onenand",
  36. .id = 0,
  37. .num_resources = ARRAY_SIZE(s3c_onenand_resources),
  38. .resource = s3c_onenand_resources,
  39. };