dev-fimc0.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* linux/arch/arm/plat-s5p/dev-fimc0.c
  2. *
  3. * Copyright (c) 2010 Samsung Electronics
  4. *
  5. * Base S5P FIMC0 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/dma-mapping.h>
  13. #include <linux/platform_device.h>
  14. #include <linux/interrupt.h>
  15. #include <linux/ioport.h>
  16. #include <mach/map.h>
  17. static struct resource s5p_fimc0_resource[] = {
  18. [0] = {
  19. .start = S5P_PA_FIMC0,
  20. .end = S5P_PA_FIMC0 + SZ_4K - 1,
  21. .flags = IORESOURCE_MEM,
  22. },
  23. [1] = {
  24. .start = IRQ_FIMC0,
  25. .end = IRQ_FIMC0,
  26. .flags = IORESOURCE_IRQ,
  27. },
  28. };
  29. static u64 s5p_fimc0_dma_mask = DMA_BIT_MASK(32);
  30. struct platform_device s5p_device_fimc0 = {
  31. .name = "s5p-fimc",
  32. .id = 0,
  33. .num_resources = ARRAY_SIZE(s5p_fimc0_resource),
  34. .resource = s5p_fimc0_resource,
  35. .dev = {
  36. .dma_mask = &s5p_fimc0_dma_mask,
  37. .coherent_dma_mask = DMA_BIT_MASK(32),
  38. },
  39. };