Skip to content

Commit 53cf310

Browse files
Jacopo Mondimchehab
authored andcommitted
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: Jacopo Mondi <[email protected]> Acked-by: Niklas Söderlund <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent d9b3c77 commit 53cf310

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/media/platform/rcar-vin/rcar-dma.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
/* Video n Data Mode Register 2 bits */
124124
#define VNDMR2_VPS (1 << 30)
125125
#define VNDMR2_HPS (1 << 29)
126+
#define VNDMR2_CES (1 << 28)
126127
#define VNDMR2_FTEV (1 << 17)
127128
#define VNDMR2_VLV(n) ((n & 0xf) << 12)
128129

@@ -698,6 +699,10 @@ static int rvin_setup(struct rvin_dev *vin)
698699
/* Vsync Signal Polarity Select */
699700
if (!(vin->parallel->mbus_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW))
700701
dmr2 |= VNDMR2_VPS;
702+
703+
/* Data Enable Polarity Select */
704+
if (vin->parallel->mbus_flags & V4L2_MBUS_DATA_ENABLE_LOW)
705+
dmr2 |= VNDMR2_CES;
701706
}
702707

703708
/*

0 commit comments

Comments
 (0)