Commit 18689f12 authored by Markus Niebel's avatar Markus Niebel Committed by Greg Kroah-Hartman

staging: drm/imx: fix spelling error for vsync flag config

partial fix of changes from
"staging: drm/imx: Add support for VGA via TVE on i.MX53"

Have to check for vsync_pin instead of hsync_pin to set Vsync_pol.
Signed-off-by: default avatarMarkus Niebel <Markus.Niebel@tqs.de>
Acked-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Tested-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Tested-by: default avatarRogerio Pimentel <rpimentel.silva@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 079461bf
......@@ -614,11 +614,11 @@ int ipu_di_init_sync_panel(struct ipu_di *di, struct ipu_di_signal_cfg *sig)
di_gen |= DI_GEN_POLARITY_7;
}
if (sig->Vsync_pol) {
if (sig->hsync_pin == 3)
if (sig->vsync_pin == 3)
di_gen |= DI_GEN_POLARITY_3;
else if (sig->hsync_pin == 6)
else if (sig->vsync_pin == 6)
di_gen |= DI_GEN_POLARITY_6;
else if (sig->hsync_pin == 8)
else if (sig->vsync_pin == 8)
di_gen |= DI_GEN_POLARITY_8;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment