omap-panel-data.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Header containing platform_data structs for omap panels
  4. *
  5. * Copyright (C) 2013 Texas Instruments
  6. * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
  7. * Archit Taneja <archit@ti.com>
  8. *
  9. * Copyright (C) 2011 Texas Instruments
  10. * Author: Mayuresh Janorkar <mayur@ti.com>
  11. *
  12. * Copyright (C) 2010 Canonical Ltd.
  13. * Author: Bryan Wu <bryan.wu@canonical.com>
  14. */
  15. #ifndef __OMAP_PANEL_DATA_H
  16. #define __OMAP_PANEL_DATA_H
  17. #include <video/display_timing.h>
  18. /**
  19. * connector_atv platform data
  20. * @name: name for this display entity
  21. * @source: name of the display entity used as a video source
  22. * @invert_polarity: invert signal polarity
  23. */
  24. struct connector_atv_platform_data {
  25. const char *name;
  26. const char *source;
  27. bool invert_polarity;
  28. };
  29. /**
  30. * panel_dpi platform data
  31. * @name: name for this display entity
  32. * @source: name of the display entity used as a video source
  33. * @data_lines: number of DPI datalines
  34. * @display_timing: timings for this panel
  35. * @backlight_gpio: gpio to enable/disable the backlight (or -1)
  36. * @enable_gpio: gpio to enable/disable the panel (or -1)
  37. */
  38. struct panel_dpi_platform_data {
  39. const char *name;
  40. const char *source;
  41. int data_lines;
  42. const struct display_timing *display_timing;
  43. int backlight_gpio;
  44. int enable_gpio;
  45. };
  46. /**
  47. * panel_acx565akm platform data
  48. * @name: name for this display entity
  49. * @source: name of the display entity used as a video source
  50. * @reset_gpio: gpio to reset the panel (or -1)
  51. * @datapairs: number of SDI datapairs
  52. */
  53. struct panel_acx565akm_platform_data {
  54. const char *name;
  55. const char *source;
  56. int reset_gpio;
  57. int datapairs;
  58. };
  59. #endif /* __OMAP_PANEL_DATA_H */