[media] VPU: mediatek: support Mediatek VPU
authorAndrew-CT Chen <andrew-ct.chen@mediatek.com>
Tue, 3 May 2016 10:11:21 +0000 (07:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 17:04:48 +0000 (14:04 -0300)
commit3003a180ef6b9462f3cccc2a89884ef2332d2a1c
tree034cf7fd3b00d45acd5e6ebb1ecdfc85ffd94b7b
parentab46f6d24bf57ddac0f5abe2f546a78af57b476c
[media] VPU: mediatek: support Mediatek VPU

The VPU driver for hw video codec embedded in Mediatek's MT8173 SOCs.
It is able to handle video decoding/encoding of in a range of formats.
The driver provides with VPU firmware download, memory management and
the communication interface between CPU and VPU.
For VPU initialization, it will create virtual memory for CPU access and
IOMMU address for vcodec hw device access. When a decode/encode instance
opens a device node, vpu driver will download vpu firmware to the device.
A decode/encode instant will decode/encode a frame using VPU
interface to interrupt vpu to handle decoding/encoding jobs.

Signed-off-by: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
[hans.verkuil@cisco.com: drop unnecessary ARM || ARM64 dependency]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/mtk-vpu/Makefile [new file with mode: 0644]
drivers/media/platform/mtk-vpu/mtk_vpu.c [new file with mode: 0644]
drivers/media/platform/mtk-vpu/mtk_vpu.h [new file with mode: 0644]