diff options
author | Jonas Schwöbel <jonasschwoebel@yahoo.de> | 2024-01-23 19:16:33 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2024-04-21 09:07:01 +0200 |
commit | edb8a528f96abb621d7d3ee51b026ec05a4e8049 (patch) | |
tree | 325e8b4f3bfbc2260a81fbc1ed0f6affa2ad669f | |
parent | 580a4442888af60188adc70eadedcf7136497da4 (diff) | |
download | u-boot-edb8a528f96abb621d7d3ee51b026ec05a4e8049.zip u-boot-edb8a528f96abb621d7d3ee51b026ec05a4e8049.tar.gz u-boot-edb8a528f96abb621d7d3ee51b026ec05a4e8049.tar.bz2 |
video: tegra20: dsi: use set_backlight for backlight only
Shift the backlight set further to prevent visual glitches on
panel init.
Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/video/tegra20/tegra-dsi.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 7d63557..13dae37 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -766,10 +766,6 @@ static int tegra_dsi_encoder_enable(struct udevice *dev) if (ret) return ret; - ret = panel_set_backlight(priv->panel, BACKLIGHT_DEFAULT); - if (ret) - return ret; - tegra_dsi_configure(dev, device->mode_flags); tegra_dc_enable_controller(dev); @@ -784,8 +780,10 @@ static int tegra_dsi_encoder_enable(struct udevice *dev) static int tegra_dsi_bridge_set_panel(struct udevice *dev, int percent) { - /* Is not used in tegra dc */ - return 0; + struct tegra_dsi_priv *priv = dev_get_priv(dev); + + /* Turn on/off backlight */ + return panel_set_backlight(priv->panel, percent); } static int tegra_dsi_panel_timings(struct udevice *dev, |