mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-22 04:56:15 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
From 98b1f0dbb23faf3e96005a25f6acb95b64afce43 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Fri, 22 Dec 2023 11:53:52 +0000
|
|
Subject: [PATCH 0816/1085] media: rp1: cfe: Add a csi_dt value for 16bit
|
|
formats
|
|
|
|
Raw 16bit formats didn't have a csi_dt value defined, which
|
|
presumably would trip the WARN_ON(!fmt->csi_dt); in
|
|
cfe_start_channel.
|
|
|
|
The value is defined in CSI2 v2.0 as 0x2e, so set it accordingly.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
|
@@ -197,6 +197,7 @@ static const struct cfe_fmt formats[] =
|
|
.fourcc = V4L2_PIX_FMT_SBGGR16,
|
|
.code = MEDIA_BUS_FMT_SBGGR16_1X16,
|
|
.depth = 16,
|
|
+ .csi_dt = MIPI_CSI2_DT_RAW16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
.remap = { V4L2_PIX_FMT_SBGGR16, V4L2_PIX_FMT_PISP_COMP1_BGGR },
|
|
},
|
|
@@ -204,6 +205,7 @@ static const struct cfe_fmt formats[] =
|
|
.fourcc = V4L2_PIX_FMT_SGBRG16,
|
|
.code = MEDIA_BUS_FMT_SGBRG16_1X16,
|
|
.depth = 16,
|
|
+ .csi_dt = MIPI_CSI2_DT_RAW16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
.remap = { V4L2_PIX_FMT_SGBRG16, V4L2_PIX_FMT_PISP_COMP1_GBRG },
|
|
},
|
|
@@ -211,6 +213,7 @@ static const struct cfe_fmt formats[] =
|
|
.fourcc = V4L2_PIX_FMT_SGRBG16,
|
|
.code = MEDIA_BUS_FMT_SGRBG16_1X16,
|
|
.depth = 16,
|
|
+ .csi_dt = MIPI_CSI2_DT_RAW16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
.remap = { V4L2_PIX_FMT_SGRBG16, V4L2_PIX_FMT_PISP_COMP1_GRBG },
|
|
},
|
|
@@ -218,6 +221,7 @@ static const struct cfe_fmt formats[] =
|
|
.fourcc = V4L2_PIX_FMT_SRGGB16,
|
|
.code = MEDIA_BUS_FMT_SRGGB16_1X16,
|
|
.depth = 16,
|
|
+ .csi_dt = MIPI_CSI2_DT_RAW16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
.remap = { V4L2_PIX_FMT_SRGGB16, V4L2_PIX_FMT_PISP_COMP1_RGGB },
|
|
},
|
|
@@ -278,6 +282,7 @@ static const struct cfe_fmt formats[] =
|
|
.fourcc = V4L2_PIX_FMT_Y16,
|
|
.code = MEDIA_BUS_FMT_Y16_1X16,
|
|
.depth = 16,
|
|
+ .csi_dt = MIPI_CSI2_DT_RAW16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
},
|
|
{
|