summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-03 01:07:55 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-11-19 22:37:12 +0200
commit75cfd81d0b1fd8a525adea941f8ae025421c4ab8 (patch)
treeaf25c87452862a1d3b068ad44f2f19435d2cb656 /include
parentbc9152c5670d653e75c0f3fdfbcd91d24829c9b0 (diff)
include: drm_fourcc: Add MediaTek Bayer packing modifier
Add a format modifier for the MediaTek-specific Bayer pixel packing. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/drm_fourcc.h8
1 files changed, 8 insertions, 0 deletions
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