Commit 53cf3100 authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Mauro Carvalho Chehab

media: rcar-vin: Handle data-enable polarity

Handle data-enable signal polarity. If the polarity is not specifically
requested to be active low, use the active high default.
Signed-off-by: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
Acked-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent d9b3c77a
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
/* Video n Data Mode Register 2 bits */ /* Video n Data Mode Register 2 bits */
#define VNDMR2_VPS (1 << 30) #define VNDMR2_VPS (1 << 30)
#define VNDMR2_HPS (1 << 29) #define VNDMR2_HPS (1 << 29)
#define VNDMR2_CES (1 << 28)
#define VNDMR2_FTEV (1 << 17) #define VNDMR2_FTEV (1 << 17)
#define VNDMR2_VLV(n) ((n & 0xf) << 12) #define VNDMR2_VLV(n) ((n & 0xf) << 12)
...@@ -698,6 +699,10 @@ static int rvin_setup(struct rvin_dev *vin) ...@@ -698,6 +699,10 @@ static int rvin_setup(struct rvin_dev *vin)
/* Vsync Signal Polarity Select */ /* Vsync Signal Polarity Select */
if (!(vin->parallel->mbus_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW)) if (!(vin->parallel->mbus_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW))
dmr2 |= VNDMR2_VPS; dmr2 |= VNDMR2_VPS;
/* Data Enable Polarity Select */
if (vin->parallel->mbus_flags & V4L2_MBUS_DATA_ENABLE_LOW)
dmr2 |= VNDMR2_CES;
} }
/* /*
......
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