diff options
author | Yannick Fertre <yannick.fertre@foss.st.com> | 2021-12-15 22:48:43 +0100 |
---|---|---|
committer | Philippe Cornu <philippe.cornu@foss.st.com> | 2022-01-13 14:06:22 +0100 |
commit | 484e72d3146bd3000a785f4709d5d44835ea8bbe (patch) | |
tree | 60712271301170c3c6c17062ba63b24a8d20b11c /drivers/gpu/drm/stm/ltdc.h | |
parent | 8f2b5f6dcbdaa507e4c4456e6c1b41691117e1d0 (diff) | |
download | linux-484e72d3146bd3000a785f4709d5d44835ea8bbe.tar.gz linux-484e72d3146bd3000a785f4709d5d44835ea8bbe.tar.bz2 linux-484e72d3146bd3000a785f4709d5d44835ea8bbe.zip |
drm/stm: ltdc: add support of ycbcr pixel formats
This patch adds the following YCbCr input pixel formats on the latest
LTDC hardware version:
1 plane (co-planar) : YUYV, YVYU, UYVY, VYUY
2 planes (semi-planar): NV12, NV21
3 planes (full-planar): YU12=I420=DRM YUV420, YV12=DRM YVU420
Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com>
Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211215214843.20703-1-yannick.fertre@foss.st.com
Diffstat (limited to 'drivers/gpu/drm/stm/ltdc.h')
-rw-r--r-- | drivers/gpu/drm/stm/ltdc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h index adc4f9cf7f95..6968d1ca5149 100644 --- a/drivers/gpu/drm/stm/ltdc.h +++ b/drivers/gpu/drm/stm/ltdc.h @@ -24,6 +24,7 @@ struct ltdc_caps { bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */ int pad_max_freq_hz; /* max frequency supported by pad */ int nb_irq; /* number of hardware interrupts */ + bool ycbcr_input; /* ycbcr input converter supported */ bool ycbcr_output; /* ycbcr output converter supported */ bool plane_reg_shadow; /* plane shadow registers ability */ }; |