exynos_drm.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* exynos_drm.h
  2. *
  3. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  4. * Authors:
  5. * Inki Dae <inki.dae@samsung.com>
  6. * Joonyoung Shim <jy0922.shim@samsung.com>
  7. * Seung-Woo Kim <sw0312.kim@samsung.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. #ifndef _EXYNOS_DRM_H_
  15. #define _EXYNOS_DRM_H_
  16. #include <uapi/drm/exynos_drm.h>
  17. /**
  18. * A structure for lcd panel information.
  19. *
  20. * @timing: default video mode for initializing
  21. * @width_mm: physical size of lcd width.
  22. * @height_mm: physical size of lcd height.
  23. */
  24. struct exynos_drm_panel_info {
  25. struct fb_videomode timing;
  26. u32 width_mm;
  27. u32 height_mm;
  28. };
  29. /**
  30. * Platform Specific Structure for DRM based FIMD.
  31. *
  32. * @panel: default panel info for initializing
  33. * @default_win: default window layer number to be used for UI.
  34. * @bpp: default bit per pixel.
  35. */
  36. struct exynos_drm_fimd_pdata {
  37. struct exynos_drm_panel_info panel;
  38. u32 vidcon0;
  39. u32 vidcon1;
  40. unsigned int default_win;
  41. unsigned int bpp;
  42. };
  43. /**
  44. * Platform Specific Structure for DRM based HDMI.
  45. *
  46. * @hdmi_dev: device point to specific hdmi driver.
  47. * @mixer_dev: device point to specific mixer driver.
  48. *
  49. * this structure is used for common hdmi driver and each device object
  50. * would be used to access specific device driver(hdmi or mixer driver)
  51. */
  52. struct exynos_drm_common_hdmi_pd {
  53. struct device *hdmi_dev;
  54. struct device *mixer_dev;
  55. };
  56. /**
  57. * Platform Specific Structure for DRM based HDMI core.
  58. *
  59. * @is_v13: set if hdmi version 13 is.
  60. * @cfg_hpd: function pointer to configure hdmi hotplug detection pin
  61. * @get_hpd: function pointer to get value of hdmi hotplug detection pin
  62. */
  63. struct exynos_drm_hdmi_pdata {
  64. bool is_v13;
  65. void (*cfg_hpd)(bool external);
  66. int (*get_hpd)(void);
  67. };
  68. /**
  69. * Platform Specific Structure for DRM based IPP.
  70. *
  71. * @inv_pclk: if set 1. invert pixel clock
  72. * @inv_vsync: if set 1. invert vsync signal for wb
  73. * @inv_href: if set 1. invert href signal
  74. * @inv_hsync: if set 1. invert hsync signal for wb
  75. */
  76. struct exynos_drm_ipp_pol {
  77. unsigned int inv_pclk;
  78. unsigned int inv_vsync;
  79. unsigned int inv_href;
  80. unsigned int inv_hsync;
  81. };
  82. /**
  83. * Platform Specific Structure for DRM based FIMC.
  84. *
  85. * @pol: current hardware block polarity settings.
  86. * @clk_rate: current hardware clock rate.
  87. */
  88. struct exynos_drm_fimc_pdata {
  89. struct exynos_drm_ipp_pol pol;
  90. int clk_rate;
  91. };
  92. #endif /* _EXYNOS_DRM_H_ */