media: meson: vdec: add VP9 decoder support
authorMaxime Jourdan <mjourdan@baylibre.com>
Wed, 4 Mar 2020 09:46:25 +0000 (10:46 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 5 Mar 2020 22:05:34 +0000 (23:05 +0100)
commit00c43088aa680989407b6afbda295f67b3f123f1
treeda7887f769a7e86b24045da95a0125eafc3ed4d5
parente9a3eb4819caf9d1408d61af059a21c535294824
media: meson: vdec: add VP9 decoder support

This adds VP9 decoding for the Amlogic GXL, G12A & SM1 SoCs, using
the commong "HEVC" HW decoder.

For G12A & SM1, it uses the IOMMU support from the firmware.

For 10bit decoding, the firmware can only decode in the proprietary
Amlogic Framebuffer Compression format, but can output in 8bit NV12
buffer while writing the decoded frame.

Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/meson/vdec/Makefile
drivers/staging/media/meson/vdec/codec_vp9.c [new file with mode: 0644]
drivers/staging/media/meson/vdec/codec_vp9.h [new file with mode: 0644]
drivers/staging/media/meson/vdec/hevc_regs.h
drivers/staging/media/meson/vdec/vdec.c
drivers/staging/media/meson/vdec/vdec_helpers.c
drivers/staging/media/meson/vdec/vdec_platform.c