1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef _PANEL_H_
- #define _PANEL_H_
- #include "../../../../../project.h"
- /* BACKLIGHT */
- #if defined(CONFIG_PANEL_BACKLIGHT_DIM_REF)
- #define PANEL_BACKLIGHT_PWM_MMIO be0f0114
- #define PANEL_BACKLIGHT_PWM_VALUE 80000000
- #define PANEL_BACKLIGHT_PWM_MASK 80000000
- #define PANEL_BACKLIGHT_PWM_DELAY CONFIG_PANEL_ON_REF_TO_DIM_DELAY
- #define PANEL_BACKLIGHT_MMIO be0f011c
- #define PANEL_BACKLIGHT_VALUE 80000000
- #define PANEL_BACKLIGHT_MASK 80000000
- #define PANEL_BACKLIGHT_DELAY 00000000
- #else
- #if defined(CONFIG_PANEL_BL_ON_BL_ADJ_SWAP_FUNCTION)
- #define PANEL_BACKLIGHT_PWM_MMIO be0f0114
- #else
- #define PANEL_BACKLIGHT_PWM_MMIO be0f011c
- #endif
- #define PANEL_BACKLIGHT_PWM_VALUE 80000000
- #define PANEL_BACKLIGHT_PWM_MASK 80000000
- #define PANEL_BACKLIGHT_PWM_DELAY 00000000
- #define PANEL_BACKLIGHT_MMIO 22222222
- #define PANEL_BACKLIGHT_VALUE 00000000
- #define PANEL_BACKLIGHT_MASK 40000000
- #define PANEL_BACKLIGHT_DELAY 00000000
- #endif
- #ifdef CONFIG_QSD
- /* LVDS MAPPING*/
- //0: Noswap, 1: Swap
- #define BOARD_LVDS_SWAP 0
- //pair a port to b port set 1 [0:6] need to set Decimal
- #define BOARD_LVDS_PAIRA_SWAP 0
- //pair b port to a port set 1 [0:6] need to set Decimal
- #define BOARD_LVDS_PAIRB_SWAP 0
- //pair A port Porality
- #define BOARD_LVDS_PairA_Porality 0
- //pair b port Porality
- #define BOARD_LVDS_PairB_Porality 0
- // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
- #define LVDS_EVEN_0 2
- #define LVDS_EVEN_1 3
- #define LVDS_EVEN_2 4
- #define LVDS_EVEN_3 1
- #define LVDS_EVEN_4 5
- #define LVDS_EVEN_5 6
- #define LVDS_EVEN_6 0
- #define LVDS_ODD_0 2
- #define LVDS_ODD_1 3
- #define LVDS_ODD_2 4
- #define LVDS_ODD_3 1
- #define LVDS_ODD_4 5
- #define LVDS_ODD_5 6
- #define LVDS_ODD_6 0
- #define LVDS_TX_CLK_SWING 2
- #define LVDS_TX_SWING 2
- #define LVDS_TX_SWING_OFFSET 7 // PS: 7 = 0 + 7, 0 is factory menu display,7 is const value
- #else
- /* LVDS MAPPING*/
- //0: Noswap, 1: Swap
- #define BOARD_LVDS_SWAP 0
- //pair a port to b port set 1 [0:6] need to set Decimal
- #define BOARD_LVDS_PAIRA_SWAP 0
- //pair b port to a port set 1 [0:6] need to set Decimal
- #define BOARD_LVDS_PAIRB_SWAP 0
- //pair A port Porality
- #define BOARD_LVDS_PairA_Porality 0
- //pair b port Porality
- #define BOARD_LVDS_PairB_Porality 0
- // 1: lvds_clk, 2: lvds_ch0, 3: lvds_ch1, 4: lvds_ch2, 5: lvds_ch3, 6: lvds_ch4
- #define LVDS_EVEN_0 2
- #define LVDS_EVEN_1 3
- #define LVDS_EVEN_2 4
- #define LVDS_EVEN_3 1
- #define LVDS_EVEN_4 5
- #define LVDS_EVEN_5 6
- #define LVDS_EVEN_6 0
- #define LVDS_ODD_0 2
- #define LVDS_ODD_1 3
- #define LVDS_ODD_2 4
- #define LVDS_ODD_3 1
- #define LVDS_ODD_4 5
- #define LVDS_ODD_5 6
- #define LVDS_ODD_6 0
- #define LVDS_TX_CLK_SWING 2
- #define LVDS_TX_SWING 2
- #define LVDS_TX_SWING_OFFSET 7 // PS: 7 = 0 + 7, 0 is factory menu display,7 is const value
- #endif
- #endif
|