/**
 * @file HIVIEW_VBO_TIAN_MA_FHD120.h
 * @brief Header file of Panel Param.
 *
 * @verbatim
 * ==============================================================================
 *                        ##### How to use #####
 * ==============================================================================
 *
 *
 @ endverbatim
 *
 * @author HiView SoC Software Team
 * @version 0.0.1
 * @date 2022-08-26
 */

#ifndef _HIVIEW_VBO_TIAN_MA_FHD120_H_
#define _HIVIEW_VBO_TIAN_MA_FHD120_H_

/*Panel common*/
#define PANEL_NAME                      "HIVIEW_VBO_TIAN_MA_FHD120"

/* FHD attribute */
#define PANEL_H_TOTAL_TYP                  2200
#define PANEL_H_TOTAL_MAX                  2200
#define PANEL_H_TOTAL_MIN                  2200
#define PANEL_V_TOTAL_TYP                  1125
#define PANEL_V_TOTAL_MAX                  1125
#define PANEL_V_TOTAL_MIN                  1125
#define PANEL_H_ACTIVE                     1920
#define PANEL_V_ACTIVE                     1080
#define PANEL_FRAME_RATE_TYP               120
#define PANEL_FRAME_RATE_MAX               122
#define PANEL_FRAME_RATE_MIN               118
#define PANEL_PIXEL_CLOCK_TYP              297000  /*KHZ*/
#define PANEL_PIXEL_CLOCK_MAX              300000  /*KHZ*/
#define PANEL_PIXEL_CLOCK_MIN              280000  /*KHZ*/
#define PANEL_H_SYNC_WIDTH                 8
#define PANEL_V_SYNC_WIDTH                 2
#define PANEL_H_SYNC_BACK_PORCH            73
#define PANEL_V_SYNC_BACK_PORCH            16

#define PANEL_COLOR_DEPTH                  10
#define PANEL_LANE_NUM                     4
#define PANEL_PORT_NUM                     1

/* EDP attribute */
#define PANEL_LANE_RATE                    10  /*for EDP(6:1.62Gbps 10:2.7Gbps 20 5.4Gbps)*/

/* SSC */
#define PANEL_SSC_EN                        0
#define PANEL_SSC_FREQ                      50       /*0-100(k)*/
#define PANEL_SSC_FRAC                      2        /*0-30(0%-3%)*/

#define PANEL_EDP_HPD0_SOFT_MODE            0  /*软件模式（强制HPD模式）, 2表示软件模式开并拉低，3表示软件模式开并拉高，0表示硬件模式*/
#define PANEL_EDP_HPD1_SOFT_MODE            0  /*软件模式（强制HPD模式）, 2表示软件模式开并拉低，3表示软件模式开并拉高，0表示硬件模式*/

/* Process */
#define PANEL_POWER_ON_TIME                 800                         /*Panel上电*/
#define PANEL_DATA_ON_TIME                  200                         /*打开data*/
#define PANEL_BLK_ON_TIME                   100                         /*开背光*/
#define PANEL_BLK_OFF_TIME                  5                           /*关闭data*/
#define PANEL_DATA_OF_TIME                  10                          /*关闭背光*/
#define PANEL_POWER_OFF_TIME                10                          /*Panel下电*/
#define PANEL_KTX_PLL_LOCK_TIME             210                         /*KTX PLL LOCK*/
#define PANEL_IDLE_PATTERN_TIME             0                           /*发送idle pattern*/

/* PHY MUX attribute */
#define PANEL_PHY0_MUX_EN                   1
#define PANEL_PHY0_0_MUX_SEL                0
#define PANEL_PHY0_1_MUX_SEL                1
#define PANEL_PHY0_2_MUX_SEL                2
#define PANEL_PHY0_3_MUX_SEL                3
#define PANEL_PHY0_LANE0_PN_SWAP            0
#define PANEL_PHY0_LANE1_PN_SWAP            0
#define PANEL_PHY0_LANE2_PN_SWAP            0
#define PANEL_PHY0_LANE3_PN_SWAP            0

#define PANEL_PHY1_MUX_EN                   1
#define PANEL_PHY1_0_MUX_SEL                0
#define PANEL_PHY1_1_MUX_SEL                1
#define PANEL_PHY1_2_MUX_SEL                2
#define PANEL_PHY1_3_MUX_SEL                3
#define PANEL_PHY1_LANE0_PN_SWAP            0
#define PANEL_PHY1_LANE1_PN_SWAP            0
#define PANEL_PHY1_LANE2_PN_SWAP            0
#define PANEL_PHY1_LANE3_PN_SWAP            0

#define PANEL_PHY2_MUX_EN                   1
#define PANEL_PHY2_0_MUX_SEL                0
#define PANEL_PHY2_1_MUX_SEL                1
#define PANEL_PHY2_2_MUX_SEL                2
#define PANEL_PHY2_3_MUX_SEL                3
#define PANEL_PHY2_LANE0_PN_SWAP            0
#define PANEL_PHY2_LANE1_PN_SWAP            0
#define PANEL_PHY2_LANE2_PN_SWAP            0
#define PANEL_PHY2_LANE3_PN_SWAP            0

#endif
