83b5c5ac3a391d13041bd95e4e6f73ae3886c3bb
[openwrt/staging/jow.git] /
1 From 44879ffefba60a72f31d79ff0124c20dc728234e 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 @@ -343,6 +343,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 {