mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +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>
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 9c5a7f04cab6b020389d7c5af155b1ee7f46537d Mon Sep 17 00:00:00 2001
|
|
From: Lee Jackson <lee.jackson@arducam.com>
|
|
Date: Thu, 4 May 2023 11:14:04 +0800
|
|
Subject: [PATCH] media: i2c: arducam_64mp: Modify the line length of 1280x720
|
|
resolution
|
|
|
|
Arducam 64MP has specific requirements for the line length, and if these
|
|
conditions are not met, the camera will not function properly. Under the
|
|
previous configuration, once a stream off operation is performed, the
|
|
camera will not output any data, even if a stream on operation is
|
|
performed. This prevents us from switching from 1280x720 to another
|
|
resolution.
|
|
|
|
Signed-off-by: Lee Jackson <lee.jackson@arducam.com>
|
|
---
|
|
drivers/media/i2c/arducam_64mp.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/arducam_64mp.c
|
|
+++ b/drivers/media/i2c/arducam_64mp.c
|
|
@@ -1063,10 +1063,10 @@ static const struct arducam_64mp_reg mod
|
|
|
|
/* 720p 120fps mode */
|
|
static const struct arducam_64mp_reg mode_1280x720_regs[] = {
|
|
- {0x0342, 0x1d},
|
|
- {0x0343, 0xc4},
|
|
- {0x0340, 0x03},
|
|
- {0x0341, 0xd8},
|
|
+ {0x0342, 0x1b},
|
|
+ {0x0343, 0x08},
|
|
+ {0x0340, 0x04},
|
|
+ {0x0341, 0x3b},
|
|
{0x0344, 0x08},
|
|
{0x0345, 0x10},
|
|
{0x0346, 0x07},
|
|
@@ -1209,7 +1209,7 @@ static const struct arducam_64mp_mode su
|
|
}, {
|
|
.width = 1280,
|
|
.height = 720,
|
|
- .line_length_pix = 0x1dc4,
|
|
+ .line_length_pix = 0x1b08,
|
|
.crop = {
|
|
.left = ARDUCAM_64MP_PIXEL_ARRAY_LEFT + 2064,
|
|
.top = ARDUCAM_64MP_PIXEL_ARRAY_TOP + 2032,
|