mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +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>
52 lines
1.6 KiB
Diff
52 lines
1.6 KiB
Diff
From 55ed8cded4af6530276b26f567601bed868ae8f5 Mon Sep 17 00:00:00 2001
|
|
From: Lee Jackson <lee.jackson@arducam.com>
|
|
Date: Wed, 10 Jan 2024 08:52:54 +0800
|
|
Subject: [PATCH] drivers: media: imx519: Add V4L2_CID_LINK_FREQ control
|
|
|
|
Add V4L2_CID_LINK_FREQ as a read-only control with a value of 408 Mhz.
|
|
This will be used by the CFE driver to corretly setup the DPHY timing
|
|
parameters in the CSI-2 block.
|
|
|
|
Signed-off-by: Lee Jackson <lee.jackson@arducam.com>
|
|
---
|
|
drivers/media/i2c/imx519.c | 14 ++++++++++++++
|
|
1 file changed, 14 insertions(+)
|
|
|
|
--- a/drivers/media/i2c/imx519.c
|
|
+++ b/drivers/media/i2c/imx519.c
|
|
@@ -145,6 +145,10 @@ struct imx519_mode {
|
|
struct imx519_reg_list reg_list;
|
|
};
|
|
|
|
+static const s64 imx519_link_freq_menu[] = {
|
|
+ IMX519_DEFAULT_LINK_FREQ,
|
|
+};
|
|
+
|
|
static const struct imx519_reg mode_common_regs[] = {
|
|
{0x0100, 0x00},
|
|
{0x0136, 0x18},
|
|
@@ -1819,6 +1823,7 @@ static int imx519_init_controls(struct i
|
|
struct v4l2_ctrl_handler *ctrl_hdlr;
|
|
struct i2c_client *client = v4l2_get_subdevdata(&imx519->sd);
|
|
struct v4l2_fwnode_device_properties props;
|
|
+ struct v4l2_ctrl *link_freq;
|
|
unsigned int i;
|
|
int ret;
|
|
|
|
@@ -1837,6 +1842,15 @@ static int imx519_init_controls(struct i
|
|
IMX519_PIXEL_RATE, 1,
|
|
IMX519_PIXEL_RATE);
|
|
|
|
+ /* LINK_FREQ is also read only */
|
|
+ link_freq =
|
|
+ v4l2_ctrl_new_int_menu(ctrl_hdlr, &imx519_ctrl_ops,
|
|
+ V4L2_CID_LINK_FREQ,
|
|
+ ARRAY_SIZE(imx519_link_freq_menu) - 1, 0,
|
|
+ imx519_link_freq_menu);
|
|
+ if (link_freq)
|
|
+ link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
|
+
|
|
/*
|
|
* Create the controls here, but mode specific limits are setup
|
|
* in the imx519_set_framing_limits() call below.
|