[PATCH v1 07/12] video: tegra20: dsi: move ganged DSI configuration before master panel enable
Svyatoslav Ryhel
clamor95 at gmail.com
Thu Dec 12 11:21:14 CET 2024
Master panel driver holds commands for both itself and link, so master
panel should be requested after both master DSI and slave DSI are
configured and ready.
Signed-off-by: Svyatoslav Ryhel <clamor95 at gmail.com>
---
drivers/video/tegra20/tegra-dsi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c
index 97a30402902..97895f37739 100644
--- a/drivers/video/tegra20/tegra-dsi.c
+++ b/drivers/video/tegra20/tegra-dsi.c
@@ -819,6 +819,9 @@ static int tegra_dsi_encoder_enable(struct udevice *dev)
tegra_dsi_set_phy_timing(&priv->dsi->ptiming,
period * 8, &priv->dphy_timing);
+ if (priv->slave)
+ tegra_dsi_encoder_enable(priv->slave);
+
/* Perform panel HW setup */
ret = panel_enable_backlight(priv->panel);
if (ret)
@@ -833,9 +836,6 @@ static int tegra_dsi_encoder_enable(struct udevice *dev)
value |= DSI_POWER_CONTROL_ENABLE;
writel(value, &misc->dsi_pwr_ctrl);
- if (priv->slave)
- tegra_dsi_encoder_enable(priv->slave);
-
return 0;
}
--
2.43.0
More information about the U-Boot
mailing list