MStar方案屏参配置
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
//Sub VOP_??[2:3](不同芯片,此值可能不一样), MS_U8 m_ucPanelEvenDataCurrent; ///< define PANEL_EVEN_DATA_CURRENT
//Sub VOP_??[0:1](不同芯片,此值可能不一样), /////////////////////////////////////////////// // panel on/off timing /////////////////////////////////////////////// MS_U16 m_wPanelOnTiming1; ///< time between panel & data while turn on power MS_U16 m_wPanelOnTiming2; ///< time between data & back light while turn on power MS_U16 m_wPanelOffTiming1; ///< timeຫໍສະໝຸດ Baidubetween back light & data while turn off power MS_U16 m_wPanelOffTiming2; ///< time between data & panel while turn off power
//缺色 MS_U8 m_bPanelSwapLVDS_POL :1; ///< MOD_40[5], PANEL_SWAP_LVDS_POL, for differential P/N swap
//正负极性切换 MS_U8 m_bPanelSwapLVDS_CH :1; ///< MOD_40[6], PANEL_SWAP_LVDS_CH, for pair swap
/////////////////////////////////////////////// // panel timing spec. /////////////////////////////////////////////// // sync related MS_U8 m_ucPanelHSyncWidth; ///< VOP_01[7:0], PANEL_HSYNC_WIDTH MS_U8 m_ucPanelHSyncBackPorch; ///< PANEL_HSYNC_BACK_PORCH, no register setting, provide value for query only, ///< not support Manuel VSync Start/End now ///< VOP_02[10:0] VSync start = Vtt - VBackPorch - VSyncWidth ///< VOP_03[10:0] VSync end = Vtt - VBackPorch MS_U8 m_ucPanelVSyncWidth; ///< define PANEL_VSYNC_WIDTH MS_U8 m_ucPanelVBackPorch; ///< define PANEL_VSYNC_BACK_PORCH // DE related MS_U16 m_wPanelHStart; ///< VOP_04[11:0], PANEL_HSTART, DE H Start (PANEL_HSYNC_WIDTH + PANEL_HSYNC_BACK_PORCH)
{ const char *m_pPanelName; ///< PanelName 屏的名称 //
// Panel output
// MS_U8 m_bPanelDither :1; ///< PANEL_DITHER, keep the setting
//Sub BK VOP_36(不同芯片,此值可能不一样),bPanelDither=1->0x2D05, bPanelDither=0->0x2D00 APIPNL_LINK_TYPE m_ePanelLinkType :4; ///< PANEL_LINK
//双通道切换 MS_U8 m_bPanelPDP10BIT :1; ///< MOD_40[3], PANEL_PDP_10BIT ,for pair swap MS_U8 m_bPanelLVDS_TI_MODE :1; ///< MOD_40[2], PANEL_LVDS_TI_MODE, refer to "LVDS output app note"
//说明当前的屏是不是 TI mode
/////////////////////////////////////////////// // For TTL Only /////////////////////////////////////////////// MS_U8 m_ucPanelDCLKDelay; ///< PANEL_DCLK_DELAY MS_U8 m_bPanelInvDCLK :1; ///< MOD_4A[4], PANEL_INV_DCLK MS_U8 m_bPanelInvDE :1; ///< MOD_4A[2], PANEL_INV_DE MS_U8 m_bPanelInvHSync :1; ///< MOD_4A[12], PANEL_INV_HSYNC MS_U8 m_bPanelInvVSync :1; ///< MOD_4A[3], PANEL_INV_VSYNC /////////////////////////////////////////////// // Output driving current setting /////////////////////////////////////////////// // driving current setting (0x00=4mA, 0x01=6mA, 0x02=8mA, 0x03=12mA) MS_U8 m_ucPanelDCKLCurrent; ///< define PANEL_DCLK_CURRENT
//蒙上灰 MS_U8 m_bPanelSwapEven_ML :1; ///< PANEL_SWAP_EVEN_ML
//蒙上灰 MS_U8 m_bPanelSwapOdd_RB :1; ///< PANEL_SWAP_ODD_RB
//缺色 MS_U8 m_bPanelSwapEven_RB :1; ///< PANEL_SWAP_EVEN_RB
//Sub VOP_??[6:7](不同芯片,此值可能不一样), MS_U8 m_ucPanelDECurrent; ///< define PANEL_DE_CURRENT
//Sub VOP_??[4:5](不同芯片,此值可能不一样), MS_U8 m_ucPanelODDDataCurrent; ///< define PANEL_ODD_DATA_CURRENT
MStar 方案屏参配置
【屏类型结构体定义 PanelType】 文档位置:《apiPNL.h》
/// A panel struct type used to specify the panel attributes, and settings from Board layout
typedef struct
MS_U16 m_wPanelVStart; ///< VOP_06[11:0], PANEL_VSTART, DE V Start MS_U16 m_wPanelWidth; ///< PANEL_WIDTH, DE width (VOP_05[11:0] = HEnd = HStart + Width - 1) MS_U16 m_wPanelHeight; ///< PANEL_HEIGHT, DE height (VOP_07[11:0], = Vend = VStart + Height - 1) // DClk related MS_U16 m_wPanelMaxHTotal; ///< PANEL_MAX_HTOTAL. Reserved for future using. MS_U16 m_wPanelHTotal; ///< VOP_0C[11:0], PANEL_HTOTAL MS_U16 m_wPanelMinHTotal; ///< PANEL_MIN_HTOTAL. Reserved for future using. MS_U16 m_wPanelMaxVTotal; ///< PANEL_MAX_VTOTAL. Reserved for future using. MS_U16 m_wPanelVTotal; ///< VOP_0D[11:0], PANEL_VTOTAL MS_U16 m_wPanelMinVTotal; ///< PANEL_MIN_VTOTAL. Reserved for future using. MS_U8 m_dwPanelMaxDCLK; ///< PANEL_MAX_DCLK. Reserved for future using. MS_U8 m_dwPanelDCLK; ///< LPLL_0F[23:0], PANEL_DCLK ,{0x3100_10[7:0], 0x3100_0F[15:0]} MS_U8 m_dwPanelMinDCLK; ///< PANEL_MIN_DCLK. Reserved for future using. ///< spread spectrum MS_U16 m_wSpreadSpectrumStep; ///< move to board define, no use now. MS_U16 m_wSpreadSpectrumSpan; ///< move to board define, no use now. MS_U8 m_ucDimmingCtl; ///< Initial Dimming Value MS_U8 m_ucMaxPWMVal; ///< Max Dimming Value MS_U8 m_ucMinPWMVal; ///< Min Dimming Value MS_U8 m_bPanelDeinterMode :1; ///< define PANEL_DEINTER_MODE, no use now E_PNL_ASPECT_RATIO m_ucPanelAspectRatio; ///< Panel Aspect Ratio, provide information to upper layer application for aspect ratio setting. /* * * Board related params * * If a board ( like BD_MST064C_D01A_S ) swap LVDS TX polarity * : This polarity swap value = * (LVDS_PN_SWAP_H<<8) | LVDS_PN_SWAP_L from board define, * Otherwise * : The value shall set to 0. */ MS_U16 m_u16LVDSTxSwapValue; APIPNL_TIBITMODE m_ucTiBitMode; ///< MOD_4B[1:0], refer to "LVDS output app note" 当 颜色不对的时候,就可以调整这个设定来试验 APIPNL_OUTPUTFORMAT_BITMODE m_ucOutputFormatBitMode; //Define panel output format bit mode.The default value is 10bit,because 8bit panel can use 10bit config and 8bit config.But 10bit panel(like PDP panel) can only use 10bit config.And some PDA panel is 6bit. MS_U8 m_bPanelSwapOdd_RG :1; ///< define PANEL_SWAP_ODD_RG MS_U8 m_bPanelSwapEven_RG :1; ///< define PANEL_SWAP_EVEN_RG
//Sub BK VOP_44(不同芯片,此值可能不一样),LVDS=0x11,RSDS=0x00 /////////////////////////////////////////////// // Board related setting /////////////////////////////////////////////// MS_U8 m_bPanelDualPort :1; ///< VOP_21[8], MOD_4A[1], PANEL_DUAL_PORT, refer to m_bPanelDoubleClk MS_U8 m_bPanelSwapPort :1; ///< MOD_4A[0], PANEL_SWAP_PORT, refer to "LVDS output app note" A/B channel swap MS_U8 m_bPanelSwapOdd_ML :1; ///< PANEL_SWAP_ODD_ML
//Sub VOP_??[0:1](不同芯片,此值可能不一样), /////////////////////////////////////////////// // panel on/off timing /////////////////////////////////////////////// MS_U16 m_wPanelOnTiming1; ///< time between panel & data while turn on power MS_U16 m_wPanelOnTiming2; ///< time between data & back light while turn on power MS_U16 m_wPanelOffTiming1; ///< timeຫໍສະໝຸດ Baidubetween back light & data while turn off power MS_U16 m_wPanelOffTiming2; ///< time between data & panel while turn off power
//缺色 MS_U8 m_bPanelSwapLVDS_POL :1; ///< MOD_40[5], PANEL_SWAP_LVDS_POL, for differential P/N swap
//正负极性切换 MS_U8 m_bPanelSwapLVDS_CH :1; ///< MOD_40[6], PANEL_SWAP_LVDS_CH, for pair swap
/////////////////////////////////////////////// // panel timing spec. /////////////////////////////////////////////// // sync related MS_U8 m_ucPanelHSyncWidth; ///< VOP_01[7:0], PANEL_HSYNC_WIDTH MS_U8 m_ucPanelHSyncBackPorch; ///< PANEL_HSYNC_BACK_PORCH, no register setting, provide value for query only, ///< not support Manuel VSync Start/End now ///< VOP_02[10:0] VSync start = Vtt - VBackPorch - VSyncWidth ///< VOP_03[10:0] VSync end = Vtt - VBackPorch MS_U8 m_ucPanelVSyncWidth; ///< define PANEL_VSYNC_WIDTH MS_U8 m_ucPanelVBackPorch; ///< define PANEL_VSYNC_BACK_PORCH // DE related MS_U16 m_wPanelHStart; ///< VOP_04[11:0], PANEL_HSTART, DE H Start (PANEL_HSYNC_WIDTH + PANEL_HSYNC_BACK_PORCH)
{ const char *m_pPanelName; ///< PanelName 屏的名称 //
// Panel output
// MS_U8 m_bPanelDither :1; ///< PANEL_DITHER, keep the setting
//Sub BK VOP_36(不同芯片,此值可能不一样),bPanelDither=1->0x2D05, bPanelDither=0->0x2D00 APIPNL_LINK_TYPE m_ePanelLinkType :4; ///< PANEL_LINK
//双通道切换 MS_U8 m_bPanelPDP10BIT :1; ///< MOD_40[3], PANEL_PDP_10BIT ,for pair swap MS_U8 m_bPanelLVDS_TI_MODE :1; ///< MOD_40[2], PANEL_LVDS_TI_MODE, refer to "LVDS output app note"
//说明当前的屏是不是 TI mode
/////////////////////////////////////////////// // For TTL Only /////////////////////////////////////////////// MS_U8 m_ucPanelDCLKDelay; ///< PANEL_DCLK_DELAY MS_U8 m_bPanelInvDCLK :1; ///< MOD_4A[4], PANEL_INV_DCLK MS_U8 m_bPanelInvDE :1; ///< MOD_4A[2], PANEL_INV_DE MS_U8 m_bPanelInvHSync :1; ///< MOD_4A[12], PANEL_INV_HSYNC MS_U8 m_bPanelInvVSync :1; ///< MOD_4A[3], PANEL_INV_VSYNC /////////////////////////////////////////////// // Output driving current setting /////////////////////////////////////////////// // driving current setting (0x00=4mA, 0x01=6mA, 0x02=8mA, 0x03=12mA) MS_U8 m_ucPanelDCKLCurrent; ///< define PANEL_DCLK_CURRENT
//蒙上灰 MS_U8 m_bPanelSwapEven_ML :1; ///< PANEL_SWAP_EVEN_ML
//蒙上灰 MS_U8 m_bPanelSwapOdd_RB :1; ///< PANEL_SWAP_ODD_RB
//缺色 MS_U8 m_bPanelSwapEven_RB :1; ///< PANEL_SWAP_EVEN_RB
//Sub VOP_??[6:7](不同芯片,此值可能不一样), MS_U8 m_ucPanelDECurrent; ///< define PANEL_DE_CURRENT
//Sub VOP_??[4:5](不同芯片,此值可能不一样), MS_U8 m_ucPanelODDDataCurrent; ///< define PANEL_ODD_DATA_CURRENT
MStar 方案屏参配置
【屏类型结构体定义 PanelType】 文档位置:《apiPNL.h》
/// A panel struct type used to specify the panel attributes, and settings from Board layout
typedef struct
MS_U16 m_wPanelVStart; ///< VOP_06[11:0], PANEL_VSTART, DE V Start MS_U16 m_wPanelWidth; ///< PANEL_WIDTH, DE width (VOP_05[11:0] = HEnd = HStart + Width - 1) MS_U16 m_wPanelHeight; ///< PANEL_HEIGHT, DE height (VOP_07[11:0], = Vend = VStart + Height - 1) // DClk related MS_U16 m_wPanelMaxHTotal; ///< PANEL_MAX_HTOTAL. Reserved for future using. MS_U16 m_wPanelHTotal; ///< VOP_0C[11:0], PANEL_HTOTAL MS_U16 m_wPanelMinHTotal; ///< PANEL_MIN_HTOTAL. Reserved for future using. MS_U16 m_wPanelMaxVTotal; ///< PANEL_MAX_VTOTAL. Reserved for future using. MS_U16 m_wPanelVTotal; ///< VOP_0D[11:0], PANEL_VTOTAL MS_U16 m_wPanelMinVTotal; ///< PANEL_MIN_VTOTAL. Reserved for future using. MS_U8 m_dwPanelMaxDCLK; ///< PANEL_MAX_DCLK. Reserved for future using. MS_U8 m_dwPanelDCLK; ///< LPLL_0F[23:0], PANEL_DCLK ,{0x3100_10[7:0], 0x3100_0F[15:0]} MS_U8 m_dwPanelMinDCLK; ///< PANEL_MIN_DCLK. Reserved for future using. ///< spread spectrum MS_U16 m_wSpreadSpectrumStep; ///< move to board define, no use now. MS_U16 m_wSpreadSpectrumSpan; ///< move to board define, no use now. MS_U8 m_ucDimmingCtl; ///< Initial Dimming Value MS_U8 m_ucMaxPWMVal; ///< Max Dimming Value MS_U8 m_ucMinPWMVal; ///< Min Dimming Value MS_U8 m_bPanelDeinterMode :1; ///< define PANEL_DEINTER_MODE, no use now E_PNL_ASPECT_RATIO m_ucPanelAspectRatio; ///< Panel Aspect Ratio, provide information to upper layer application for aspect ratio setting. /* * * Board related params * * If a board ( like BD_MST064C_D01A_S ) swap LVDS TX polarity * : This polarity swap value = * (LVDS_PN_SWAP_H<<8) | LVDS_PN_SWAP_L from board define, * Otherwise * : The value shall set to 0. */ MS_U16 m_u16LVDSTxSwapValue; APIPNL_TIBITMODE m_ucTiBitMode; ///< MOD_4B[1:0], refer to "LVDS output app note" 当 颜色不对的时候,就可以调整这个设定来试验 APIPNL_OUTPUTFORMAT_BITMODE m_ucOutputFormatBitMode; //Define panel output format bit mode.The default value is 10bit,because 8bit panel can use 10bit config and 8bit config.But 10bit panel(like PDP panel) can only use 10bit config.And some PDA panel is 6bit. MS_U8 m_bPanelSwapOdd_RG :1; ///< define PANEL_SWAP_ODD_RG MS_U8 m_bPanelSwapEven_RG :1; ///< define PANEL_SWAP_EVEN_RG
//Sub BK VOP_44(不同芯片,此值可能不一样),LVDS=0x11,RSDS=0x00 /////////////////////////////////////////////// // Board related setting /////////////////////////////////////////////// MS_U8 m_bPanelDualPort :1; ///< VOP_21[8], MOD_4A[1], PANEL_DUAL_PORT, refer to m_bPanelDoubleClk MS_U8 m_bPanelSwapPort :1; ///< MOD_4A[0], PANEL_SWAP_PORT, refer to "LVDS output app note" A/B channel swap MS_U8 m_bPanelSwapOdd_ML :1; ///< PANEL_SWAP_ODD_ML