3d8b6c90438064a02392c04123dd796558e26457
[openwrt/staging/neocturne.git] /
1 From 944b57ac4241c2beac0ccdba4b56d9c47aafa9d4 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 {