diff options
author | Yannick FERTRE <yannick.fertre@foss.st.com> | 2022-04-06 10:37:42 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2022-05-10 10:56:39 +0200 |
commit | ef4ce6df3289f4ea8d55e093289bd39181385aac (patch) | |
tree | b245463edb3a8464bb3cafea55c003494548952d /drivers/video/stm32 | |
parent | a9fed5aac5c6da9763fdc5d10fd83299d63b7c24 (diff) | |
download | u-boot-ef4ce6df3289f4ea8d55e093289bd39181385aac.tar.gz u-boot-ef4ce6df3289f4ea8d55e093289bd39181385aac.tar.bz2 u-boot-ef4ce6df3289f4ea8d55e093289bd39181385aac.zip |
video: stm32: stm32_ltdc: fix data enable polarity
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>
Diffstat (limited to 'drivers/video/stm32')
-rw-r--r-- | drivers/video/stm32/stm32_ltdc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index e741e74739..9269d4bfb4 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -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; |