dev-onenand.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* linux/arch/arm/plat-s5p/dev-onenand.c
  2. *
  3. * Copyright 2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * Copyright (c) 2008-2010 Samsung Electronics
  7. * Kyungmin Park <kyungmin.park@samsung.com>
  8. *
  9. * S5P series device definition for OneNAND devices
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #include <linux/kernel.h>
  16. #include <linux/platform_device.h>
  17. #include <mach/irqs.h>
  18. #include <mach/map.h>
  19. static struct resource s5p_onenand_resources[] = {
  20. [0] = {
  21. .start = S5P_PA_ONENAND,
  22. .end = S5P_PA_ONENAND + SZ_128K - 1,
  23. .flags = IORESOURCE_MEM,
  24. },
  25. [1] = {
  26. .start = S5P_PA_ONENAND_DMA,
  27. .end = S5P_PA_ONENAND_DMA + SZ_8K - 1,
  28. .flags = IORESOURCE_MEM,
  29. },
  30. [2] = {
  31. .start = IRQ_ONENAND_AUDI,
  32. .end = IRQ_ONENAND_AUDI,
  33. .flags = IORESOURCE_IRQ,
  34. },
  35. };
  36. struct platform_device s5p_device_onenand = {
  37. .name = "s5pc110-onenand",
  38. .id = -1,
  39. .num_resources = ARRAY_SIZE(s5p_onenand_resources),
  40. .resource = s5p_onenand_resources,
  41. };