|
发表于 2016-7-5 20:14:25
只看该作者
沙发
可能在rk32_mipi_dsi.c 的下面那段
再试试看
-------------------------------------------------
rk32_dsi_set_bits(dsi, dsi->host.video_mode, vid_mode_type); /* burst mode */
switch (dsi->host.video_mode) {
case VM_BM:
if (screen->type == SCREEN_DUAL_MIPI)
rk32_dsi_set_bits(dsi, screen->x_res / 2 + 4, vid_pkt_size);
else
rk32_dsi_set_bits(dsi, screen->x_res, vid_pkt_size);
break;
case VM_NBMWSE:
case VM_NBMWSP:
for (i = 8; i < 32; i++) {
temp = i * lane * Tpclk % Ttxbyte_clk;
if (decimals > temp) {
decimals = temp;
m = i;
}
if (decimals == 0)
break;
}
rk32_dsi_set_bits(dsi, screen->x_res / m + 1, num_chunks);
rk32_dsi_set_bits(dsi, m, vid_pkt_size);
temp = m * lane * Tpclk / Ttxbyte_clk - m * bytes_px;
MIPI_DBG("%s:%d, %d\n", __func__, m, temp);
if (temp >= 12)
rk32_dsi_set_bits(dsi, temp - 12, null_pkt_size);
break;
default:
break;
}
/* rk32_dsi_set_bits(dsi, 0, CMD_MODE_CFG << 16); */
if (screen->type == SCREEN_MIPI) { |
|