mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 8dcc16f0adc50f5cb8a11a6dde238131d0ca45a0 Mon Sep 17 00:00:00 2001
|
|
From: David Plowman <david.plowman@raspberrypi.com>
|
|
Date: Fri, 27 Oct 2023 12:14:22 +0100
|
|
Subject: [PATCH] drivers: media: imx477: Set horizontal binning when disabling
|
|
the scaler
|
|
|
|
The horizontal scaler has been disabled but actually the sensor is not
|
|
binning horizontally, resulting in images that are stretched 2x
|
|
horizontally (missing the right half of the field of view completely).
|
|
|
|
Therefore we must additionally set the horizontal binning mode. There
|
|
is only marginal change in output quality and noise levels.
|
|
|
|
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
|
|
Fixes: f075893e9b0e ("drivers: media: imx477: Disable the scaler")
|
|
---
|
|
drivers/media/i2c/imx477.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/imx477.c
|
|
+++ b/drivers/media/i2c/imx477.c
|
|
@@ -607,7 +607,7 @@ static const struct imx477_reg mode_2028
|
|
{0x0385, 0x01},
|
|
{0x0387, 0x01},
|
|
{0x0900, 0x01},
|
|
- {0x0901, 0x12},
|
|
+ {0x0901, 0x22},
|
|
{0x0902, 0x02},
|
|
{0x3140, 0x02},
|
|
{0x3c00, 0x00},
|
|
@@ -708,7 +708,7 @@ static const struct imx477_reg mode_2028
|
|
{0x0385, 0x01},
|
|
{0x0387, 0x01},
|
|
{0x0900, 0x01},
|
|
- {0x0901, 0x12},
|
|
+ {0x0901, 0x22},
|
|
{0x0902, 0x02},
|
|
{0x3140, 0x02},
|
|
{0x3c00, 0x00},
|