1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 08:12:06 +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 ce6e04b98b
commit 981097c0d8

View File

@@ -547,10 +547,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