drm/tegra: rgb: Parameterize V- and H-sync polarities
authorThierry Reding <treding@nvidia.com>
Wed, 6 Sep 2023 06:50:48 +0000 (09:50 +0300)
committerRobert Foss <rfoss@kernel.org>
Wed, 20 Sep 2023 11:48:34 +0000 (13:48 +0200)
commit1716b1891e1de05e2c20ccafa9f58550f3539717
treeb96387b70bc391d83e129d5423f61735b06f2521
parentbb9fb4a42de14b56bdf90b5af6db770ec4830af8
drm/tegra: rgb: Parameterize V- and H-sync polarities

The polarities of the V- and H-sync signals are encoded as flags in the
display mode, so use the existing information to setup the signals for
the RGB interface.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
[tomi.valkeinen@ideasonboard.com: default to positive sync]
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Tested-by: Maxim Schwalm <maxim.schwalm@gmail.com> # Asus TF700T
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230906-tc358768-v4-1-31725f008a50@ideasonboard.com
drivers/gpu/drm/tegra/rgb.c