dev-csis0.c 879 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2010-2011 Samsung Electronics Co., Ltd.
  3. *
  4. * S5P series device definition for MIPI-CSIS channel 0
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/interrupt.h>
  12. #include <linux/platform_device.h>
  13. #include <mach/map.h>
  14. static struct resource s5p_mipi_csis0_resource[] = {
  15. [0] = {
  16. .start = S5P_PA_MIPI_CSIS0,
  17. .end = S5P_PA_MIPI_CSIS0 + SZ_4K - 1,
  18. .flags = IORESOURCE_MEM,
  19. },
  20. [1] = {
  21. .start = IRQ_MIPI_CSIS0,
  22. .end = IRQ_MIPI_CSIS0,
  23. .flags = IORESOURCE_IRQ,
  24. }
  25. };
  26. struct platform_device s5p_device_mipi_csis0 = {
  27. .name = "s5p-mipi-csis",
  28. .id = 0,
  29. .num_resources = ARRAY_SIZE(s5p_mipi_csis0_resource),
  30. .resource = s5p_mipi_csis0_resource,
  31. };