MT65XX LCM 接口配置
05-08
请教LCM dsi的时钟应该如何配置?
dsi.PLL_CLOCK
dsi.fbk_div
dsi.pll_div1
dsi.pll_div2
还有如下参数具体是如何定义的?
dsi.vertical_sync_active
dsi.vertical_backporch
dsi.vertical_frontporch
dsi.vertical_active_line
static void lcm_get_params(LCM_PARAMS *params)
{
memset(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DSI;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
#if (LCM_DSI_CMD_MODE)
params->dsi.mode = CMD_MODE;
#else
params->dsi.mode = BURST_VDO_MODE;
#endif
// DSI
/* Command mode setting */
params->dsi.LANE_NUM = LCM_ONE_LANE;
//The following defined the fomat for data coming from LCD engine.
params->dsi.data_format.format = LCM_DSI_FORMAT_RGB888;
params->dsi.vertical_sync_active = 4;// 3 2
params->dsi.vertical_backporch = 4;// 20 1
params->dsi.vertical_frontporch = 8; // 1 12
params->dsi.vertical_active_line = FRAME_HEIGHT;
params->dsi.horizontal_sync_active = 5;// 50 2
params->dsi.horizontal_backporch = 33;
params->dsi.horizontal_frontporch = 386;
params->dsi.horizontal_active_pixel = FRAME_WIDTH;//FRAME_WIDTH/2;
params->dsi.PS=LCM_PACKED_PS_24BIT_RGB888;
params->dsi.ufoe_enable = 1;
params->dsi.ssc_disable = 1;
#if (LCM_DSI_CMD_MODE)
params->dsi.PLL_CLOCK = 69;//160;
#else
// params->dsi.PLL_CLOCK = 148;//dsi clock customization: should config clock value directly
#endif
#if 0
params->dsi.fbk_div = 10;
params->dsi.pll_div1 = 0x0;
params->dsi.pll_div2 = 0x0;
#endif
}
dsi.PLL_CLOCK
dsi.fbk_div
dsi.pll_div1
dsi.pll_div2
还有如下参数具体是如何定义的?
dsi.vertical_sync_active
dsi.vertical_backporch
dsi.vertical_frontporch
dsi.vertical_active_line
static void lcm_get_params(LCM_PARAMS *params)
{
memset(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DSI;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
#if (LCM_DSI_CMD_MODE)
params->dsi.mode = CMD_MODE;
#else
params->dsi.mode = BURST_VDO_MODE;
#endif
// DSI
/* Command mode setting */
params->dsi.LANE_NUM = LCM_ONE_LANE;
//The following defined the fomat for data coming from LCD engine.
params->dsi.data_format.format = LCM_DSI_FORMAT_RGB888;
params->dsi.vertical_sync_active = 4;// 3 2
params->dsi.vertical_backporch = 4;// 20 1
params->dsi.vertical_frontporch = 8; // 1 12
params->dsi.vertical_active_line = FRAME_HEIGHT;
params->dsi.horizontal_sync_active = 5;// 50 2
params->dsi.horizontal_backporch = 33;
params->dsi.horizontal_frontporch = 386;
params->dsi.horizontal_active_pixel = FRAME_WIDTH;//FRAME_WIDTH/2;
params->dsi.PS=LCM_PACKED_PS_24BIT_RGB888;
params->dsi.ufoe_enable = 1;
params->dsi.ssc_disable = 1;
#if (LCM_DSI_CMD_MODE)
params->dsi.PLL_CLOCK = 69;//160;
#else
// params->dsi.PLL_CLOCK = 148;//dsi clock customization: should config clock value directly
#endif
#if 0
params->dsi.fbk_div = 10;
params->dsi.pll_div1 = 0x0;
params->dsi.pll_div2 = 0x0;
#endif
}
我点过MTK 的LCM ,可以加我QQ 咨询
麻烦私信一下你的qq 谢谢
365249278 QQ
相关文章:
- MT6589 LCM接口问题(05-08)
- MIPI BIF 智能电池接口(05-08)
- 请教各位高手,MTK通过哪个接口进入待机休眠及如何唤醒(05-08)
- 关于MT6582视频输入的接口切换(05-08)
- 双路LVDS接口推荐:DS90C387与EP387(05-08)
- 手机如何实现双USB接口功能?(05-08)
射频专业培训教程推荐