]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: tegra-dc: add panel_set_backlight call
authorSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 27 Mar 2023 08:11:46 +0000 (11:11 +0300)
committerAnatolij Gustschin <agust@denx.de>
Fri, 7 Apr 2023 17:47:01 +0000 (19:47 +0200)
Tegra DC driver does not call panel_set_backlight, which can
result in absence of backlight on device. Fix this by calling
panel_set_backlight with BACKLIGHT_DEFAULT just after
panel_enable_backlight.

Tested-by: Robert Eckelmann <longnoserob@gmail.com> # ASUS TF101 T20
Tested-by: Nicolas Chauvet <kwizart@gmail.com> # Paz00
Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS TF T30
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/video/tegra20/tegra-dc.c

index e2796509227c4c6eb02fc00b387592732f085975..00462fa188c2e77a153f58dfe14acd9a5ad365e6 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <backlight.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
@@ -345,6 +346,12 @@ static int tegra_lcd_probe(struct udevice *dev)
                return ret;
        }
 
+       ret = panel_set_backlight(priv->panel, BACKLIGHT_DEFAULT);
+       if (ret) {
+               debug("%s: Cannot set backlight to default, ret=%d\n", __func__, ret);
+               return ret;
+       }
+
        mmu_set_region_dcache_behaviour(priv->frame_buffer, plat->size,
                                        DCACHE_WRITETHROUGH);