Commit 8f852ab8 authored by Samuel Holland's avatar Samuel Holland Committed by Mauro Carvalho Chehab

media: cedrus: Add support for the D1 variant

D1 has a unique variant of the video engine, which appears to drop the
VP8 support found on most earlier variants.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Acked-by: default avatarMaxime Ripard <maxime@cerno.tech>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent b925c1fd
...@@ -580,6 +580,14 @@ static const struct cedrus_variant sun8i_r40_cedrus_variant = { ...@@ -580,6 +580,14 @@ static const struct cedrus_variant sun8i_r40_cedrus_variant = {
.mod_rate = 297000000, .mod_rate = 297000000,
}; };
static const struct cedrus_variant sun20i_d1_cedrus_variant = {
.capabilities = CEDRUS_CAPABILITY_UNTILED |
CEDRUS_CAPABILITY_MPEG2_DEC |
CEDRUS_CAPABILITY_H264_DEC |
CEDRUS_CAPABILITY_H265_DEC,
.mod_rate = 432000000,
};
static const struct cedrus_variant sun50i_a64_cedrus_variant = { static const struct cedrus_variant sun50i_a64_cedrus_variant = {
.capabilities = CEDRUS_CAPABILITY_UNTILED | .capabilities = CEDRUS_CAPABILITY_UNTILED |
CEDRUS_CAPABILITY_MPEG2_DEC | CEDRUS_CAPABILITY_MPEG2_DEC |
...@@ -637,6 +645,10 @@ static const struct of_device_id cedrus_dt_match[] = { ...@@ -637,6 +645,10 @@ static const struct of_device_id cedrus_dt_match[] = {
.compatible = "allwinner,sun8i-r40-video-engine", .compatible = "allwinner,sun8i-r40-video-engine",
.data = &sun8i_r40_cedrus_variant, .data = &sun8i_r40_cedrus_variant,
}, },
{
.compatible = "allwinner,sun20i-d1-video-engine",
.data = &sun20i_d1_cedrus_variant,
},
{ {
.compatible = "allwinner,sun50i-a64-video-engine", .compatible = "allwinner,sun50i-a64-video-engine",
.data = &sun50i_a64_cedrus_variant, .data = &sun50i_a64_cedrus_variant,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment