dev-fimc1.c 868 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* linux/arch/arm/plat-s5p/dev-fimc1.c
  2. *
  3. * Copyright (c) 2010 Samsung Electronics
  4. *
  5. * Base S5P FIMC1 resource and device definitions
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/platform_device.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/ioport.h>
  15. #include <mach/map.h>
  16. static struct resource s5p_fimc1_resource[] = {
  17. [0] = {
  18. .start = S5P_PA_FIMC1,
  19. .end = S5P_PA_FIMC1 + SZ_1M - 1,
  20. .flags = IORESOURCE_MEM,
  21. },
  22. [1] = {
  23. .start = IRQ_FIMC1,
  24. .end = IRQ_FIMC1,
  25. .flags = IORESOURCE_IRQ,
  26. },
  27. };
  28. struct platform_device s5p_device_fimc1 = {
  29. .name = "s5p-fimc",
  30. .id = 1,
  31. .num_resources = ARRAY_SIZE(s5p_fimc1_resource),
  32. .resource = s5p_fimc1_resource,
  33. };