1 From c05b94675920adae7b29cdca120e74a8c05bf703 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 31 Mar 2022 15:39:40 +0100
4 Subject: [PATCH] media: i2c: imx258: Correct max FRM_LENGTH_LINES
7 The data sheet states that the maximum value for registers
8 0x0340/0x0341 FRM_LENGTH_LINES is 65525(decimal), not the
9 0xFFFF defined in this driver. Correct this limit.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 drivers/media/i2c/imx258.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 --- a/drivers/media/i2c/imx258.c
17 +++ b/drivers/media/i2c/imx258.c
19 #define IMX258_VTS_30FPS 0x0c50
20 #define IMX258_VTS_30FPS_2K 0x0638
21 #define IMX258_VTS_30FPS_VGA 0x034c
22 -#define IMX258_VTS_MAX 0xffff
23 +#define IMX258_VTS_MAX 65525
25 #define IMX258_REG_VTS 0x0340