mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +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>
53 lines
1.5 KiB
Diff
53 lines
1.5 KiB
Diff
From 88d06a674009ad5b77234537527a800e6e0e88a3 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Thu, 16 Nov 2023 14:28:55 +0000
|
|
Subject: [PATCH] drivers: media: cfe: Add 16-bit and compressed mono format
|
|
support
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
.../media/platform/raspberrypi/rp1_cfe/cfe_fmts.h | 14 ++++++++++----
|
|
1 file changed, 10 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
|
@@ -249,28 +249,34 @@ static const struct cfe_fmt formats[] =
|
|
.code = MEDIA_BUS_FMT_Y10_1X10,
|
|
.depth = 10,
|
|
.csi_dt = 0x2b,
|
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
|
},
|
|
{
|
|
.fourcc = V4L2_PIX_FMT_Y12P,
|
|
.code = MEDIA_BUS_FMT_Y12_1X12,
|
|
.depth = 12,
|
|
.csi_dt = 0x2c,
|
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
|
},
|
|
{
|
|
.fourcc = V4L2_PIX_FMT_Y14P,
|
|
.code = MEDIA_BUS_FMT_Y14_1X14,
|
|
.depth = 14,
|
|
.csi_dt = 0x2d,
|
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
|
},
|
|
{
|
|
.fourcc = V4L2_PIX_FMT_Y16,
|
|
+ .code = MEDIA_BUS_FMT_Y16_1X16,
|
|
.depth = 16,
|
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
},
|
|
-
|
|
+ {
|
|
+ .fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,
|
|
+ .code = MEDIA_BUS_FMT_Y16_1X16,
|
|
+ .depth = 8,
|
|
+ .flags = CFE_FORMAT_FLAG_FE_OUT,
|
|
+ },
|
|
/* Embedded data format */
|
|
{
|
|
.fourcc = V4L2_META_FMT_SENSOR_DATA,
|