media: cedrus: Add support for V3s

V3s video engine runs at lower speed and support video decoder
for H.264 and JPEG/MJPEG only.

Signed-off-by: Martin Cerveny <m.cerveny@computer.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Martin Cerveny 2020-11-16 13:56:15 +01:00 committed by Mauro Carvalho Chehab
parent 4c7047b7dc
commit 5cc794be38

View File

@ -518,6 +518,12 @@ static const struct cedrus_variant sun8i_h3_cedrus_variant = {
.mod_rate = 402000000, .mod_rate = 402000000,
}; };
static const struct cedrus_variant sun8i_v3s_cedrus_variant = {
.capabilities = CEDRUS_CAPABILITY_UNTILED |
CEDRUS_CAPABILITY_H264_DEC,
.mod_rate = 297000000,
};
static const struct cedrus_variant sun8i_r40_cedrus_variant = { static const struct cedrus_variant sun8i_r40_cedrus_variant = {
.capabilities = CEDRUS_CAPABILITY_UNTILED | .capabilities = CEDRUS_CAPABILITY_UNTILED |
CEDRUS_CAPABILITY_MPEG2_DEC | CEDRUS_CAPABILITY_MPEG2_DEC |
@ -571,6 +577,10 @@ static const struct of_device_id cedrus_dt_match[] = {
.compatible = "allwinner,sun8i-h3-video-engine", .compatible = "allwinner,sun8i-h3-video-engine",
.data = &sun8i_h3_cedrus_variant, .data = &sun8i_h3_cedrus_variant,
}, },
{
.compatible = "allwinner,sun8i-v3s-video-engine",
.data = &sun8i_v3s_cedrus_variant,
},
{ {
.compatible = "allwinner,sun8i-r40-video-engine", .compatible = "allwinner,sun8i-r40-video-engine",
.data = &sun8i_r40_cedrus_variant, .data = &sun8i_r40_cedrus_variant,