omap-panel-data.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /*
  2. * Header containing platform_data structs for omap panels
  3. *
  4. * Copyright (C) 2013 Texas Instruments
  5. * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
  6. * Archit Taneja <archit@ti.com>
  7. *
  8. * Copyright (C) 2011 Texas Instruments
  9. * Author: Mayuresh Janorkar <mayur@ti.com>
  10. *
  11. * Copyright (C) 2010 Canonical Ltd.
  12. * Author: Bryan Wu <bryan.wu@canonical.com>
  13. *
  14. * This program is free software; you can redistribute it and/or modify it
  15. * under the terms of the GNU General Public License version 2 as published by
  16. * the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful, but WITHOUT
  19. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  20. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  21. * more details.
  22. *
  23. * You should have received a copy of the GNU General Public License along with
  24. * this program. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. #ifndef __OMAP_PANEL_DATA_H
  27. #define __OMAP_PANEL_DATA_H
  28. struct omap_dss_device;
  29. /**
  30. * struct panel_generic_dpi_data - panel driver configuration data
  31. * @name: panel name
  32. * @platform_enable: platform specific panel enable function
  33. * @platform_disable: platform specific panel disable function
  34. * @num_gpios: number of gpios connected to panel
  35. * @gpios: gpio numbers on the platform
  36. * @gpio_invert: configure gpio as active high or low
  37. */
  38. struct panel_generic_dpi_data {
  39. const char *name;
  40. int (*platform_enable)(struct omap_dss_device *dssdev);
  41. void (*platform_disable)(struct omap_dss_device *dssdev);
  42. int num_gpios;
  43. int gpios[10];
  44. bool gpio_invert[10];
  45. };
  46. /**
  47. * struct panel_n8x0_data - N800 panel driver configuration data
  48. */
  49. struct panel_n8x0_data {
  50. int (*platform_enable)(struct omap_dss_device *dssdev);
  51. void (*platform_disable)(struct omap_dss_device *dssdev);
  52. int panel_reset;
  53. int ctrl_pwrdown;
  54. };
  55. /**
  56. * struct nokia_dsi_panel_data - Nokia DSI panel driver configuration data
  57. * @name: panel name
  58. * @use_ext_te: use external TE
  59. * @ext_te_gpio: external TE GPIO
  60. * @esd_interval: interval of ESD checks, 0 = disabled (ms)
  61. * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)
  62. * @use_dsi_backlight: true if panel uses DSI command to control backlight
  63. * @pin_config: DSI pin configuration
  64. */
  65. struct nokia_dsi_panel_data {
  66. const char *name;
  67. int reset_gpio;
  68. bool use_ext_te;
  69. int ext_te_gpio;
  70. unsigned esd_interval;
  71. unsigned ulps_timeout;
  72. bool use_dsi_backlight;
  73. struct omap_dsi_pin_config pin_config;
  74. };
  75. /**
  76. * struct picodlp_panel_data - picodlp panel driver configuration data
  77. * @picodlp_adapter_id: i2c_adapter number for picodlp
  78. */
  79. struct picodlp_panel_data {
  80. int picodlp_adapter_id;
  81. int emu_done_gpio;
  82. int pwrgood_gpio;
  83. };
  84. /**
  85. * struct tfp410_platform_data - tfp410 panel driver configuration data
  86. * @i2c_bus_num: i2c bus id for the panel
  87. * @power_down_gpio: gpio number for PD pin (or -1 if not available)
  88. */
  89. struct tfp410_platform_data {
  90. int i2c_bus_num;
  91. int power_down_gpio;
  92. };
  93. /**
  94. * sharp ls panel driver configuration data
  95. * @resb_gpio: reset signal
  96. * @ini_gpio: power on control
  97. * @mo_gpio: selection for resolution(VGA/QVGA)
  98. * @lr_gpio: selection for horizontal scanning direction
  99. * @ud_gpio: selection for vertical scanning direction
  100. */
  101. struct panel_sharp_ls037v7dw01_data {
  102. int resb_gpio;
  103. int ini_gpio;
  104. int mo_gpio;
  105. int lr_gpio;
  106. int ud_gpio;
  107. };
  108. /**
  109. * acx565akm panel driver configuration data
  110. * @reset_gpio: reset signal
  111. */
  112. struct panel_acx565akm_data {
  113. int reset_gpio;
  114. };
  115. /**
  116. * nec nl8048 panel driver configuration data
  117. * @res_gpio: reset signal
  118. * @qvga_gpio: selection for resolution(QVGA/WVGA)
  119. */
  120. struct panel_nec_nl8048_data {
  121. int res_gpio;
  122. int qvga_gpio;
  123. };
  124. /**
  125. * tpo td043 panel driver configuration data
  126. * @nreset_gpio: reset signal
  127. */
  128. struct panel_tpo_td043_data {
  129. int nreset_gpio;
  130. };
  131. #endif /* __OMAP_PANEL_DATA_H */