lvds_setting.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. //pair A port Porality
  37. #define BOARD_LVDS_PairA_Porality 0
  38. //pair b port Porality
  39. #define BOARD_LVDS_PairB_Porality 0
  40. // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
  41. #define LVDS_EVEN_0 2
  42. #define LVDS_EVEN_1 3
  43. #define LVDS_EVEN_2 4
  44. #define LVDS_EVEN_3 1
  45. #define LVDS_EVEN_4 5
  46. #define LVDS_EVEN_5 6
  47. #define LVDS_EVEN_6 0
  48. #define LVDS_ODD_0 2
  49. #define LVDS_ODD_1 3
  50. #define LVDS_ODD_2 4
  51. #define LVDS_ODD_3 1
  52. #define LVDS_ODD_4 5
  53. #define LVDS_ODD_5 6
  54. #define LVDS_ODD_6 0
  55. #define LVDS_TX_CLK_SWING 2
  56. #define LVDS_TX_SWING 2
  57. #define LVDS_TX_SWING_OFFSET 7 // PS: 7 = 0 + 7, 0 is factory menu display,7 is const value
  58. #else
  59. /* LVDS MAPPING*/
  60. //0: Noswap, 1: Swap
  61. #define BOARD_LVDS_SWAP 0
  62. //pair a port to b port set 1 [0:6] need to set Decimal
  63. #define BOARD_LVDS_PAIRA_SWAP 0
  64. //pair b port to a port set 1 [0:6] need to set Decimal
  65. #define BOARD_LVDS_PAIRB_SWAP 0
  66. //pair A port Porality
  67. #define BOARD_LVDS_PairA_Porality 0
  68. //pair b port Porality
  69. #define BOARD_LVDS_PairB_Porality 0
  70. // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
  71. #define LVDS_EVEN_0 2
  72. #define LVDS_EVEN_1 3
  73. #define LVDS_EVEN_2 4
  74. #define LVDS_EVEN_3 1
  75. #define LVDS_EVEN_4 5
  76. #define LVDS_EVEN_5 6
  77. #define LVDS_EVEN_6 0
  78. #define LVDS_ODD_0 2
  79. #define LVDS_ODD_1 3
  80. #define LVDS_ODD_2 4
  81. #define LVDS_ODD_3 1
  82. #define LVDS_ODD_4 5
  83. #define LVDS_ODD_5 6
  84. #define LVDS_ODD_6 0
  85. #define LVDS_TX_CLK_SWING 2
  86. #define LVDS_TX_SWING 2
  87. #define LVDS_TX_SWING_OFFSET 7 // PS: 7 = 0 + 7, 0 is factory menu display,7 is const value
  88. #endif
  89. #endif