8b50dceafe6157184fa08b9f7611e81b60ba6432
[openwrt/staging/xback.git] /
1 From dd3b1e96b9d27f26a0aedc2eb5eae08ba1a4ef48 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 25 Jun 2020 18:03:47 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Add support for 14bit mono
5 sources
6
7 Now that V4L2_PIX_FMT_Y14 and V4L2_PIX_FMT_Y14P are defined,
8 allow passing 14bit mono data through the peripheral.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/media/platform/bcm2835/bcm2835-unicam.c | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
17 @@ -341,6 +341,12 @@ static const struct unicam_fmt formats[]
18 .code = MEDIA_BUS_FMT_Y12_1X12,
19 .depth = 12,
20 .csi_dt = 0x2c,
21 + }, {
22 + .fourcc = V4L2_PIX_FMT_Y14P,
23 + .repacked_fourcc = V4L2_PIX_FMT_Y14,
24 + .code = MEDIA_BUS_FMT_Y14_1X14,
25 + .depth = 14,
26 + .csi_dt = 0x2d,
27 },
28 /* Embedded data format */
29 {