exynos_lcd.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * exynos_lcd.h - Exynos LCD Controller structures
  3. *
  4. * (C) Copyright 2001
  5. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef _EXYNOS_LCD_H_
  10. #define _EXYNOS_LCD_H_
  11. enum {
  12. FIMD_RGB_INTERFACE = 1,
  13. FIMD_CPU_INTERFACE = 2,
  14. };
  15. enum exynos_fb_rgb_mode_t {
  16. MODE_RGB_P = 0,
  17. MODE_BGR_P = 1,
  18. MODE_RGB_S = 2,
  19. MODE_BGR_S = 3,
  20. };
  21. typedef struct vidinfo {
  22. ushort vl_col; /* Number of columns (i.e. 640) */
  23. ushort vl_row; /* Number of rows (i.e. 480) */
  24. ushort vl_rot; /* Rotation of Display (0, 1, 2, 3) */
  25. ushort vl_width; /* Width of display area in millimeters */
  26. ushort vl_height; /* Height of display area in millimeters */
  27. /* LCD configuration register */
  28. u_char vl_freq; /* Frequency */
  29. u_char vl_clkp; /* Clock polarity */
  30. u_char vl_oep; /* Output Enable polarity */
  31. u_char vl_hsp; /* Horizontal Sync polarity */
  32. u_char vl_vsp; /* Vertical Sync polarity */
  33. u_char vl_dp; /* Data polarity */
  34. u_char vl_bpix; /* Bits per pixel */
  35. /* Horizontal control register. Timing from data sheet */
  36. u_char vl_hspw; /* Horz sync pulse width */
  37. u_char vl_hfpd; /* Wait before of line */
  38. u_char vl_hbpd; /* Wait end of line */
  39. /* Vertical control register. */
  40. u_char vl_vspw; /* Vertical sync pulse width */
  41. u_char vl_vfpd; /* Wait before of frame */
  42. u_char vl_vbpd; /* Wait end of frame */
  43. u_char vl_cmd_allow_len; /* Wait end of frame */
  44. unsigned int win_id;
  45. unsigned int init_delay;
  46. unsigned int power_on_delay;
  47. unsigned int reset_delay;
  48. unsigned int interface_mode;
  49. unsigned int mipi_enabled;
  50. unsigned int dp_enabled;
  51. unsigned int cs_setup;
  52. unsigned int wr_setup;
  53. unsigned int wr_act;
  54. unsigned int wr_hold;
  55. unsigned int logo_on;
  56. unsigned int logo_width;
  57. unsigned int logo_height;
  58. int logo_x_offset;
  59. int logo_y_offset;
  60. unsigned long logo_addr;
  61. unsigned int rgb_mode;
  62. unsigned int resolution;
  63. /* parent clock name(MPLL, EPLL or VPLL) */
  64. unsigned int pclk_name;
  65. /* ratio value for source clock from parent clock. */
  66. unsigned int sclk_div;
  67. unsigned int dual_lcd_enabled;
  68. struct exynos_fb *reg;
  69. struct exynos_platform_mipi_dsim *dsim_platform_data_dt;
  70. } vidinfo_t;
  71. #endif