12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #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
- // 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
- #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
- // 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
- #endif
- #endif
|