omap-panel-data.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. #include <video/display_timing.h>
  29. /**
  30. * connector_atv platform data
  31. * @name: name for this display entity
  32. * @source: name of the display entity used as a video source
  33. * @invert_polarity: invert signal polarity
  34. */
  35. struct connector_atv_platform_data {
  36. const char *name;
  37. const char *source;
  38. bool invert_polarity;
  39. };
  40. /**
  41. * panel_dpi platform data
  42. * @name: name for this display entity
  43. * @source: name of the display entity used as a video source
  44. * @data_lines: number of DPI datalines
  45. * @display_timing: timings for this panel
  46. * @backlight_gpio: gpio to enable/disable the backlight (or -1)
  47. * @enable_gpio: gpio to enable/disable the panel (or -1)
  48. */
  49. struct panel_dpi_platform_data {
  50. const char *name;
  51. const char *source;
  52. int data_lines;
  53. const struct display_timing *display_timing;
  54. int backlight_gpio;
  55. int enable_gpio;
  56. };
  57. /**
  58. * panel_acx565akm platform data
  59. * @name: name for this display entity
  60. * @source: name of the display entity used as a video source
  61. * @reset_gpio: gpio to reset the panel (or -1)
  62. * @datapairs: number of SDI datapairs
  63. */
  64. struct panel_acx565akm_platform_data {
  65. const char *name;
  66. const char *source;
  67. int reset_gpio;
  68. int datapairs;
  69. };
  70. #endif /* __OMAP_PANEL_DATA_H */