layerscape: add patches-5.4
[openwrt/staging/mkresin.git] / target / linux / layerscape / patches-5.4 / 805-display-0036-media-bus-format-Add-RGB101010_1X7X5_SPWG-JEIDA-supp.patch
1 From 5cc582f5609f947d9692eef5489388c61cfbcc88 Mon Sep 17 00:00:00 2001
2 From: Liu Ying <victor.liu@nxp.com>
3 Date: Tue, 9 May 2017 17:39:41 +0800
4 Subject: [PATCH] media: bus format: Add RGB101010_1X7X5_SPWG/JEIDA support
5
6 This patch adds 30bit RGB101010 LVDS pixel formats support for
7 the SPWG and JEIDA LVDS mapping standards. Each pixel is transferred
8 on 5 lanes with 7bit respectively.
9
10 Signed-off-by: Liu Ying <victor.liu@nxp.com>
11 ---
12 include/uapi/linux/media-bus-format.h | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 --- a/include/uapi/linux/media-bus-format.h
16 +++ b/include/uapi/linux/media-bus-format.h
17 @@ -34,7 +34,7 @@
18
19 #define MEDIA_BUS_FMT_FIXED 0x0001
20
21 -/* RGB - next is 0x101d */
22 +/* RGB - next is 0x101f */
23 #define MEDIA_BUS_FMT_RGB444_1X12 0x1016
24 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001
25 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002
26 @@ -65,6 +65,8 @@
27 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a
28 #define MEDIA_BUS_FMT_RGB888_1X30_PADLO 0x101b
29 #define MEDIA_BUS_FMT_RGB666_1X30_PADLO 0x101c
30 +#define MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG 0x101d
31 +#define MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA 0x101e
32
33 /* YUV (including grey) - next is 0x202d */
34 #define MEDIA_BUS_FMT_Y8_1X8 0x2001