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);