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>
This commit is contained in:
parent
a9fed5aac5
commit
ef4ce6df32
@ -255,7 +255,7 @@ static void stm32_ltdc_set_mode(struct stm32_ltdc_priv *priv,
|
|||||||
val |= GCR_HSPOL;
|
val |= GCR_HSPOL;
|
||||||
if (timings->flags & DISPLAY_FLAGS_VSYNC_HIGH)
|
if (timings->flags & DISPLAY_FLAGS_VSYNC_HIGH)
|
||||||
val |= GCR_VSPOL;
|
val |= GCR_VSPOL;
|
||||||
if (timings->flags & DISPLAY_FLAGS_DE_HIGH)
|
if (timings->flags & DISPLAY_FLAGS_DE_LOW)
|
||||||
val |= GCR_DEPOL;
|
val |= GCR_DEPOL;
|
||||||
if (timings->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
|
if (timings->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
|
||||||
val |= GCR_PCPOL;
|
val |= GCR_PCPOL;
|
||||||
|
Loading…
Reference in New Issue
Block a user