mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
video: rockchip: dw_mipi_dsi: Sync calculations with Linux
This was all weird and broken. Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
@@ -976,6 +976,8 @@ static ulong rk3399_clk_get_rate(struct clk *clk)
|
||||
case PCLK_WDT:
|
||||
rate = rk3399_alive_get_clk(priv->cru);
|
||||
break;
|
||||
case SCLK_DPHY_PLL:
|
||||
return 24000000;
|
||||
default:
|
||||
log_debug("Unknown clock %lu\n", clk->id);
|
||||
return -ENOENT;
|
||||
|
@@ -521,8 +521,8 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, struct display_timing *timings,
|
||||
|
||||
mpclk = DIV_ROUND_UP(timings->pixelclock.typ, 1000);
|
||||
if (mpclk) {
|
||||
/* take 1 / 0.8, since mbps must big than bandwidth of RGB */
|
||||
tmp = (mpclk * (bpp / lanes) * 10 / 8) / 1000;
|
||||
/* take 1 / 0.9, since mbps must big than bandwidth of RGB */
|
||||
tmp = (mpclk * (bpp / lanes) * 10 / 9) / 1000;
|
||||
if (tmp < max_mbps)
|
||||
target_mbps = tmp;
|
||||
else
|
||||
|
Reference in New Issue
Block a user