lvds_setting.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef _PANEL_H_
  2. #define _PANEL_H_
  3. #include "../../../../../project.h"
  4. /* BACKLIGHT */
  5. #if defined(CONFIG_PANEL_BACKLIGHT_DIM_REF)
  6. #define PANEL_BACKLIGHT_PWM_MMIO be0f0114
  7. #define PANEL_BACKLIGHT_PWM_VALUE 80000000
  8. #define PANEL_BACKLIGHT_PWM_MASK 80000000
  9. #define PANEL_BACKLIGHT_PWM_DELAY CONFIG_PANEL_ON_REF_TO_DIM_DELAY
  10. #define PANEL_BACKLIGHT_MMIO be0f011c
  11. #define PANEL_BACKLIGHT_VALUE 80000000
  12. #define PANEL_BACKLIGHT_MASK 80000000
  13. #define PANEL_BACKLIGHT_DELAY 00000000
  14. #else
  15. #if defined(CONFIG_PANEL_BL_ON_BL_ADJ_SWAP_FUNCTION)
  16. #define PANEL_BACKLIGHT_PWM_MMIO be0f0114
  17. #else
  18. #define PANEL_BACKLIGHT_PWM_MMIO be0f011c
  19. #endif
  20. #define PANEL_BACKLIGHT_PWM_VALUE 80000000
  21. #define PANEL_BACKLIGHT_PWM_MASK 80000000
  22. #define PANEL_BACKLIGHT_PWM_DELAY 00000000
  23. #define PANEL_BACKLIGHT_MMIO 22222222
  24. #define PANEL_BACKLIGHT_VALUE 00000000
  25. #define PANEL_BACKLIGHT_MASK 40000000
  26. #define PANEL_BACKLIGHT_DELAY 00000000
  27. #endif
  28. #ifdef CONFIG_QSD
  29. /* LVDS MAPPING*/
  30. //0: Noswap, 1: Swap
  31. #define BOARD_LVDS_SWAP 0
  32. //pair a port to b port set 1 [0:6] need to set Decimal
  33. #define BOARD_LVDS_PAIRA_SWAP 0
  34. //pair b port to a port set 1 [0:6] need to set Decimal
  35. #define BOARD_LVDS_PAIRB_SWAP 0
  36. // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
  37. #define LVDS_EVEN_0 2
  38. #define LVDS_EVEN_1 3
  39. #define LVDS_EVEN_2 4
  40. #define LVDS_EVEN_3 1
  41. #define LVDS_EVEN_4 5
  42. #define LVDS_EVEN_5 6
  43. #define LVDS_EVEN_6 0
  44. #define LVDS_ODD_0 2
  45. #define LVDS_ODD_1 3
  46. #define LVDS_ODD_2 4
  47. #define LVDS_ODD_3 1
  48. #define LVDS_ODD_4 5
  49. #define LVDS_ODD_5 6
  50. #define LVDS_ODD_6 0
  51. #define LVDS_TX_CLK_SWING 2
  52. #define LVDS_TX_SWING 2
  53. #else
  54. /* LVDS MAPPING*/
  55. //0: Noswap, 1: Swap
  56. #define BOARD_LVDS_SWAP 0
  57. //pair a port to b port set 1 [0:6] need to set Decimal
  58. #define BOARD_LVDS_PAIRA_SWAP 0
  59. //pair b port to a port set 1 [0:6] need to set Decimal
  60. #define BOARD_LVDS_PAIRB_SWAP 0
  61. // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
  62. #define LVDS_EVEN_0 2
  63. #define LVDS_EVEN_1 3
  64. #define LVDS_EVEN_2 4
  65. #define LVDS_EVEN_3 1
  66. #define LVDS_EVEN_4 5
  67. #define LVDS_EVEN_5 6
  68. #define LVDS_EVEN_6 0
  69. #define LVDS_ODD_0 2
  70. #define LVDS_ODD_1 3
  71. #define LVDS_ODD_2 4
  72. #define LVDS_ODD_3 1
  73. #define LVDS_ODD_4 5
  74. #define LVDS_ODD_5 6
  75. #define LVDS_ODD_6 0
  76. #define LVDS_TX_CLK_SWING 2
  77. #define LVDS_TX_SWING 2
  78. #endif
  79. #endif