From cd625ee08e7e815083795182c79521c13067321e Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Thu, 7 Feb 2019 11:49:46 +0300 Subject: [PATCH 096/122] lvds: ti9x4: use REFCLK=23.0MHz This fixes data integrity on FPDLink channel Signed-off-by: Vladimir Barinov --- drivers/media/i2c/soc_camera/ti9x4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera/ti9x4.c b/drivers/media/i2c/soc_camera/ti9x4.c index db60ebd..373652a 100644 --- a/drivers/media/i2c/soc_camera/ti9x4.c +++ b/drivers/media/i2c/soc_camera/ti9x4.c @@ -144,7 +144,7 @@ static void ti9x4_initial_setup(struct i2c_client *client) reg8_write(client, 0x0d, 0xb9); /* VDDIO 3.3V */ switch (priv->csi_rate) { case 1600: /* REFCLK = 25MHZ */ - case 1500: /* REFCLK = 23.5MHZ */ + case 1500: /* REFCLK = 23MHZ */ case 1450: /* REFCLK = 22.5MHZ */ reg8_write(client, 0x1f, 0x00); /* CSI rate 1.5/1.6Gbps */ break; @@ -173,8 +173,8 @@ static void ti9x4_initial_setup(struct i2c_client *client) fs_time = 2790; break; case 1500: - /* FrameSync setup for REFCLK=23.5MHz, FPS=30: period_counts=1/FPS/12.766mks=1/30/12.766e-6=2612 -> HI=2, LO=2610 */ - fs_time = 2625; + /* FrameSync setup for REFCLK=23MHz, FPS=30: period_counts=1/FPS/13.043mks=1/30/13.043e-6=2556 -> HI=2, LO=2554 */ + fs_time = 2570; break; case 1450: case 1100: -- 2.7.4