diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-02-18 18:04:33 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-02-18 23:42:32 +0100 |
commit | f07e572f6447465d8938679533d604e402b0f066 (patch) | |
tree | cb333bd2a67e59e7c07659514850a0fd55fc825e /target/linux/bcm27xx/patches-5.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch | |
parent | 5d3a6fd970619dfc55f8259035c3027d7613a2a6 (diff) | |
download | upstream-f07e572f6447465d8938679533d604e402b0f066.tar.gz upstream-f07e572f6447465d8938679533d604e402b0f066.tar.bz2 upstream-f07e572f6447465d8938679533d604e402b0f066.zip |
bcm27xx: import latest patches from the RPi foundation
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G
bcm2710: boot tested on RPi 3B v1.2
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.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/target/linux/bcm27xx/patches-5.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch b/target/linux/bcm27xx/patches-5.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch deleted file mode 100644 index 3ad377dfbe..0000000000 --- a/target/linux/bcm27xx/patches-5.4/950-0656-media-i2c-imx219-Add-support-for-cropped-640x480-res.patch +++ /dev/null @@ -1,118 +0,0 @@ -From d8b1f6de10d7bd64d73b1c3099ad5e69e6fd7d9b Mon Sep 17 00:00:00 2001 -From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> -Date: Tue, 10 Mar 2020 14:17:09 +0100 -Subject: [PATCH] media: i2c: imx219: Add support for cropped 640x480 - resolution - -Commit 25130b8ad409d5532f3763bcf891af74f550a70d upstream. - -This patch adds mode table entry for capturing cropped 640x480 resolution - -Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> -Acked-by: Dave Stevenson <dave.stevenson@raspberrypi.com> -Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> -Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> ---- - drivers/media/i2c/imx219.c | 70 +++++++++++++++++++++++++++++++++++++- - 1 file changed, 69 insertions(+), 1 deletion(-) - ---- a/drivers/media/i2c/imx219.c -+++ b/drivers/media/i2c/imx219.c -@@ -54,6 +54,7 @@ - #define IMX219_VTS_15FPS 0x0dc6 - #define IMX219_VTS_30FPS_1080P 0x06e3 - #define IMX219_VTS_30FPS_BINNED 0x06e3 -+#define IMX219_VTS_30FPS_640x480 0x06e3 - #define IMX219_VTS_MAX 0xffff - - #define IMX219_VBLANK_MIN 4 -@@ -138,7 +139,7 @@ struct imx219_mode { - /* - * Register sets lifted off the i2C interface from the Raspberry Pi firmware - * driver. -- * 3280x2464 = mode 2, 1920x1080 = mode 1, and 1640x1232 = mode 4. -+ * 3280x2464 = mode 2, 1920x1080 = mode 1, 1640x1232 = mode 4, 640x480 = mode 7. - */ - static const struct imx219_reg mode_3280x2464_regs[] = { - {0x0100, 0x00}, -@@ -313,6 +314,63 @@ static const struct imx219_reg mode_1640 - {0x0163, 0x78}, - }; - -+static const struct imx219_reg mode_640_480_regs[] = { -+ {0x0100, 0x00}, -+ {0x30eb, 0x05}, -+ {0x30eb, 0x0c}, -+ {0x300a, 0xff}, -+ {0x300b, 0xff}, -+ {0x30eb, 0x05}, -+ {0x30eb, 0x09}, -+ {0x0114, 0x01}, -+ {0x0128, 0x00}, -+ {0x012a, 0x18}, -+ {0x012b, 0x00}, -+ {0x0162, 0x0d}, -+ {0x0163, 0x78}, -+ {0x0164, 0x03}, -+ {0x0165, 0xe8}, -+ {0x0166, 0x08}, -+ {0x0167, 0xe7}, -+ {0x0168, 0x02}, -+ {0x0169, 0xf0}, -+ {0x016a, 0x06}, -+ {0x016b, 0xaf}, -+ {0x016c, 0x02}, -+ {0x016d, 0x80}, -+ {0x016e, 0x01}, -+ {0x016f, 0xe0}, -+ {0x0170, 0x01}, -+ {0x0171, 0x01}, -+ {0x0174, 0x03}, -+ {0x0175, 0x03}, -+ {0x0301, 0x05}, -+ {0x0303, 0x01}, -+ {0x0304, 0x03}, -+ {0x0305, 0x03}, -+ {0x0306, 0x00}, -+ {0x0307, 0x39}, -+ {0x030b, 0x01}, -+ {0x030c, 0x00}, -+ {0x030d, 0x72}, -+ {0x0624, 0x06}, -+ {0x0625, 0x68}, -+ {0x0626, 0x04}, -+ {0x0627, 0xd0}, -+ {0x455e, 0x00}, -+ {0x471e, 0x4b}, -+ {0x4767, 0x0f}, -+ {0x4750, 0x14}, -+ {0x4540, 0x00}, -+ {0x47b4, 0x14}, -+ {0x4713, 0x30}, -+ {0x478b, 0x10}, -+ {0x478f, 0x10}, -+ {0x4793, 0x10}, -+ {0x4797, 0x0e}, -+ {0x479b, 0x0e}, -+}; -+ - static const struct imx219_reg raw8_framefmt_regs[] = { - {0x018c, 0x08}, - {0x018d, 0x08}, -@@ -431,6 +489,16 @@ static const struct imx219_mode supporte - .regs = mode_1640_1232_regs, - }, - }, -+ { -+ /* 640x480 30fps mode */ -+ .width = 640, -+ .height = 480, -+ .vts_def = IMX219_VTS_30FPS_640x480, -+ .reg_list = { -+ .num_of_regs = ARRAY_SIZE(mode_640_480_regs), -+ .regs = mode_640_480_regs, -+ }, -+ }, - }; - - struct imx219 { |