bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1007-media-rp1-csi2-Set-values-for-enum-csi2_mode.patch
1 From c56b53d62116b4672962124afab02f3beada4244 Mon Sep 17 00:00:00 2001
2 From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
3 Date: Fri, 29 Sep 2023 12:57:23 +0300
4 Subject: [PATCH] media: rp1: csi2: Set values for enum csi2_mode
5
6 Set hardcoded values for enum csi2_mode, as the values will be
7 programmed to HW registers.
8
9 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
10 ---
11 drivers/media/platform/raspberrypi/rp1_cfe/csi2.h | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
13
14 --- a/drivers/media/platform/raspberrypi/rp1_cfe/csi2.h
15 +++ b/drivers/media/platform/raspberrypi/rp1_cfe/csi2.h
16 @@ -20,10 +20,10 @@
17 #define DISCARDS_TABLE_NUM_VCS 4
18
19 enum csi2_mode {
20 - CSI2_MODE_NORMAL,
21 - CSI2_MODE_REMAP,
22 - CSI2_MODE_COMPRESSED,
23 - CSI2_MODE_FE_STREAMING
24 + CSI2_MODE_NORMAL = 0,
25 + CSI2_MODE_REMAP = 1,
26 + CSI2_MODE_COMPRESSED = 2,
27 + CSI2_MODE_FE_STREAMING = 3,
28 };
29
30 enum csi2_compression_mode {