diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 10:54:34 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 19:07:07 +0200 |
commit | 8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch) | |
tree | 1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch | |
parent | 33b6885975ce376ff075362b7f0890326043111b (diff) | |
download | upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2 upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip |
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted
patches, wireless patches and defconfig patches.
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 4B v1.1 4G
bcm2711: boot tested on RPi 4B v1.1 4G
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch b/target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch new file mode 100644 index 0000000000..9caf98942d --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0486-media-i2c-imx290-Fix-up-exposure-calcuations-and-ran.patch @@ -0,0 +1,59 @@ +From 2b7aa91757952e3214ddfd335ae527b89240ecb8 Mon Sep 17 00:00:00 2001 +From: David Plowman <david.plowman@raspberrypi.com> +Date: Wed, 17 Feb 2021 18:08:12 +0000 +Subject: [PATCH] media: i2c: imx290: Fix up exposure calcuations and + ranges + +Should now correspond exactly to the datasheet. + +Signed-off-by: David Plowman <david.plowman@raspberrypi.com> +--- + drivers/media/i2c/imx290.c | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +--- a/drivers/media/i2c/imx290.c ++++ b/drivers/media/i2c/imx290.c +@@ -50,7 +50,7 @@ enum imx290_clk_index { + #define IMX290_HMAX_MIN_4LANE 2200 /* Min of 2200 pixels = 60fps */ + #define IMX290_HMAX_MAX 0xffff + +-#define IMX290_EXPOSURE_MIN 2 ++#define IMX290_EXPOSURE_MIN 1 + #define IMX290_EXPOSURE_STEP 1 + #define IMX290_EXPOSURE_LOW 0x3020 + #define IMX290_PGCTRL 0x308c +@@ -584,7 +584,7 @@ static int imx290_set_gain(struct imx290 + static int imx290_set_exposure(struct imx290 *imx290, u32 value) + { + u32 exposure = (imx290->current_mode->height + imx290->vblank->val) - +- value; ++ value - 1; + int ret; + + ret = imx290_write_buffered_reg(imx290, IMX290_EXPOSURE_LOW, 3, +@@ -855,10 +855,10 @@ static int imx290_set_fmt(struct v4l2_su + } + if (imx290->exposure) + __v4l2_ctrl_modify_range(imx290->exposure, +- mode->vmax - mode->height, +- mode->vmax - 4, ++ IMX290_EXPOSURE_MIN, ++ mode->vmax - 2, + IMX290_EXPOSURE_STEP, +- mode->vmax - 4); ++ mode->vmax - 2); + } + + *format = fmt->format; +@@ -1349,9 +1349,9 @@ static int imx290_probe(struct i2c_clien + imx290->exposure = v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, + V4L2_CID_EXPOSURE, + IMX290_EXPOSURE_MIN, +- mode->vmax - 4, ++ mode->vmax - 2, + IMX290_EXPOSURE_STEP, +- mode->vmax - 4); ++ mode->vmax - 2); + + imx290->hflip = v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, + V4L2_CID_HFLIP, 0, 1, 1, 0); |