[v7,1/6] media: i2c: max9286: Disable overlap window
diff mbox series

Message ID 20200216105105.3751688-2-jacopo+renesas@jmondi.org
State New
Delegated to: Kieran Bingham
Headers show
Series
  • RDACM20 and RDACM21 GMSL camera support
Related show

Commit Message

Jacopo Mondi Feb. 16, 2020, 10:51 a.m. UTC
Disable the overlap window. This settings is briefly documented in the
chip manual, but it probably concur in the frame syncronization timing
calculations.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>

---
v7:
  - new patch required to capture from RDACM21
---
 drivers/media/i2c/max9286.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index b5b8d4919c78..ed5dcae6b363 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1015,6 +1015,10 @@  static int max9286_setup(struct max9286_priv *priv)
 	max9286_write(priv, 0x01, MAX9286_FSYNCMODE_INT_HIZ |
 		      MAX9286_FSYNCMETH_AUTO);
 
+	/* Disable overlap window. */
+	max9286_write(priv, 0x63, 0);
+	max9286_write(priv, 0x64, 0);
+
 	/* Enable HS/VS encoding, use D14/15 for HS/VS, invert VS. */
 	max9286_write(priv, 0x0c, MAX9286_HVEN | MAX9286_INVVS |
 		      MAX9286_HVSRC_D14);