dev-tv.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* linux/arch/arm/plat-s5p/dev-tv.c
  2. *
  3. * Copyright (C) 2011 Samsung Electronics Co.Ltd
  4. * Author: Tomasz Stanislawski <t.stanislaws@samsung.com>
  5. *
  6. * S5P series device definition for TV device
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/dma-mapping.h>
  13. #include <mach/irqs.h>
  14. #include <mach/map.h>
  15. #include <plat/devs.h>
  16. /* HDMI interface */
  17. static struct resource s5p_hdmi_resources[] = {
  18. [0] = {
  19. .start = S5P_PA_HDMI,
  20. .end = S5P_PA_HDMI + SZ_1M - 1,
  21. .flags = IORESOURCE_MEM,
  22. },
  23. [1] = {
  24. .start = IRQ_HDMI,
  25. .end = IRQ_HDMI,
  26. .flags = IORESOURCE_IRQ,
  27. },
  28. };
  29. struct platform_device s5p_device_hdmi = {
  30. .name = "s5p-hdmi",
  31. .id = -1,
  32. .num_resources = ARRAY_SIZE(s5p_hdmi_resources),
  33. .resource = s5p_hdmi_resources,
  34. };
  35. EXPORT_SYMBOL(s5p_device_hdmi);
  36. /* SDO interface */
  37. static struct resource s5p_sdo_resources[] = {
  38. [0] = {
  39. .start = S5P_PA_SDO,
  40. .end = S5P_PA_SDO + SZ_64K - 1,
  41. .flags = IORESOURCE_MEM,
  42. },
  43. [1] = {
  44. .start = IRQ_SDO,
  45. .end = IRQ_SDO,
  46. .flags = IORESOURCE_IRQ,
  47. }
  48. };
  49. struct platform_device s5p_device_sdo = {
  50. .name = "s5p-sdo",
  51. .id = -1,
  52. .num_resources = ARRAY_SIZE(s5p_sdo_resources),
  53. .resource = s5p_sdo_resources,
  54. };
  55. EXPORT_SYMBOL(s5p_device_sdo);
  56. /* MIXER */
  57. static struct resource s5p_mixer_resources[] = {
  58. [0] = {
  59. .start = S5P_PA_MIXER,
  60. .end = S5P_PA_MIXER + SZ_64K - 1,
  61. .flags = IORESOURCE_MEM,
  62. .name = "mxr"
  63. },
  64. [1] = {
  65. .start = S5P_PA_VP,
  66. .end = S5P_PA_VP + SZ_64K - 1,
  67. .flags = IORESOURCE_MEM,
  68. .name = "vp"
  69. },
  70. [2] = {
  71. .start = IRQ_MIXER,
  72. .end = IRQ_MIXER,
  73. .flags = IORESOURCE_IRQ,
  74. .name = "irq"
  75. }
  76. };
  77. static u64 s5p_tv_dmamask = DMA_BIT_MASK(32);
  78. struct platform_device s5p_device_mixer = {
  79. .name = "s5p-mixer",
  80. .id = -1,
  81. .num_resources = ARRAY_SIZE(s5p_mixer_resources),
  82. .resource = s5p_mixer_resources,
  83. .dev = {
  84. .coherent_dma_mask = DMA_BIT_MASK(32),
  85. .dma_mask = &s5p_tv_dmamask,
  86. }
  87. };
  88. EXPORT_SYMBOL(s5p_device_mixer);