From 75cfd81d0b1fd8a525adea941f8ae025421c4ab8 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 3 Apr 2020 01:07:55 +0300 Subject: include: drm_fourcc: Add MediaTek Bayer packing modifier Add a format modifier for the MediaTek-specific Bayer pixel packing. Signed-off-by: Laurent Pinchart --- include/linux/drm_fourcc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h index 28ea3a16..553e47ed 100644 --- a/include/linux/drm_fourcc.h +++ b/include/linux/drm_fourcc.h @@ -432,6 +432,7 @@ extern "C" { #define DRM_FORMAT_MOD_VENDOR_ALLWINNER 0x09 #define DRM_FORMAT_MOD_VENDOR_AMLOGIC 0x0a #define DRM_FORMAT_MOD_VENDOR_MIPI 0x0b +#define DRM_FORMAT_MOD_VENDOR_MEDIATEK 0x0c /* add more to the end as needed */ @@ -1356,6 +1357,13 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier) */ #define MIPI_FORMAT_MOD_CSI2_PACKED fourcc_mod_code(MIPI, 1) +/* MediaTek format modifiers */ + +/* + * Bayer packing + */ +#define MEDIATEK_FORMAT_MOD_BAYER_PACKED fourcc_mod_code(MEDIATEK, 1) + #if defined(__cplusplus) } #endif -- cgit v1.2.1