1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-15 23:11:36 +02:00

video: rockchip: dw-mipi-dsi: Align clock rate calculations with Linux

Just to be on the same page

Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
Ondrej Jirman
2023-05-22 00:22:19 +02:00
parent c842a731f7
commit cfd2f81e73

View File

@@ -546,10 +546,10 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, struct display_timing *timings,
return bpp;
}
mpclk = DIV_ROUND_UP(timings->pixelclock.typ, 1000);
mpclk = DIV_ROUND_UP(timings->pixelclock.typ, 1000000);
if (mpclk) {
/* take 1 / 0.9, since mbps must big than bandwidth of RGB */
tmp = (mpclk * (bpp / lanes) * 10 / 9) / 1000;
tmp = (mpclk * (bpp / lanes) * 10 / 9);
if (tmp < max_mbps)
target_mbps = tmp;
else