omap-panel-data.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. */
  35. struct panel_generic_dpi_data {
  36. const char *name;
  37. int (*platform_enable)(struct omap_dss_device *dssdev);
  38. void (*platform_disable)(struct omap_dss_device *dssdev);
  39. };
  40. /**
  41. * struct panel_n8x0_data - N800 panel driver configuration data
  42. */
  43. struct panel_n8x0_data {
  44. int (*platform_enable)(struct omap_dss_device *dssdev);
  45. void (*platform_disable)(struct omap_dss_device *dssdev);
  46. int panel_reset;
  47. int ctrl_pwrdown;
  48. int (*set_backlight)(struct omap_dss_device *dssdev, int level);
  49. };
  50. /**
  51. * struct nokia_dsi_panel_data - Nokia DSI panel driver configuration data
  52. * @name: panel name
  53. * @use_ext_te: use external TE
  54. * @ext_te_gpio: external TE GPIO
  55. * @esd_interval: interval of ESD checks, 0 = disabled (ms)
  56. * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)
  57. * @use_dsi_backlight: true if panel uses DSI command to control backlight
  58. * @pin_config: DSI pin configuration
  59. */
  60. struct nokia_dsi_panel_data {
  61. const char *name;
  62. int reset_gpio;
  63. bool use_ext_te;
  64. int ext_te_gpio;
  65. unsigned esd_interval;
  66. unsigned ulps_timeout;
  67. bool use_dsi_backlight;
  68. struct omap_dsi_pin_config pin_config;
  69. };
  70. /**
  71. * struct picodlp_panel_data - picodlp panel driver configuration data
  72. * @picodlp_adapter_id: i2c_adapter number for picodlp
  73. */
  74. struct picodlp_panel_data {
  75. int picodlp_adapter_id;
  76. int emu_done_gpio;
  77. int pwrgood_gpio;
  78. };
  79. /**
  80. * struct tfp410_platform_data - tfp410 panel driver configuration data
  81. * @i2c_bus_num: i2c bus id for the panel
  82. * @power_down_gpio: gpio number for PD pin (or -1 if not available)
  83. */
  84. struct tfp410_platform_data {
  85. int i2c_bus_num;
  86. int power_down_gpio;
  87. };
  88. #endif /* __OMAP_PANEL_DATA_H */