]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: stm32: stm32_ltdc: fix data enable polarity
authorYannick FERTRE <yannick.fertre@foss.st.com>
Wed, 6 Apr 2022 08:37:42 +0000 (10:37 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 10 May 2022 08:56:39 +0000 (10:56 +0200)
Wrong DISPLAY_FLAGS used to set the data enable polarity.

Signed-off-by: Yannick FERTRE <yannick.fertre@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/video/stm32/stm32_ltdc.c

index e741e74739c10a5f34340b93f0cc04f18af51da3..9269d4bfb4c6c01a1f8a150cd99a7700f85c0502 100644 (file)
@@ -255,7 +255,7 @@ static void stm32_ltdc_set_mode(struct stm32_ltdc_priv *priv,
                val |= GCR_HSPOL;
        if (timings->flags & DISPLAY_FLAGS_VSYNC_HIGH)
                val |= GCR_VSPOL;
-       if (timings->flags & DISPLAY_FLAGS_DE_HIGH)
+       if (timings->flags & DISPLAY_FLAGS_DE_LOW)
                val |= GCR_DEPOL;
        if (timings->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
                val |= GCR_PCPOL;