Skip to content

Commit 3003a18

Browse files
andrewct-chenmchehab
authored andcommitted
[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>
1 parent ab46f6d commit 3003a18

5 files changed

Lines changed: 1130 additions & 0 deletions

File tree

‎drivers/media/platform/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ config VIDEO_CODA
153153
Coda is a range of video codec IPs that supports
154154
H.264, MPEG-4, and other video formats.
155155

156+
config VIDEO_MEDIATEK_VPU
157+
tristate "Mediatek Video Processor Unit"
158+
depends on VIDEO_DEV && VIDEO_V4L2
159+
depends on ARCH_MEDIATEK || COMPILE_TEST
160+
---help---
161+
This driver provides downloading VPU firmware and
162+
communicating with VPU. This driver for hw video
163+
codec embedded in Mediatek's MT8173 SOCs. It is able
164+
to handle video decoding/encoding in a range of formats.
165+
166+
To compile this driver as a module, choose M here: the
167+
module will be called mtk-vpu.
168+
156169
config VIDEO_MEM2MEM_DEINTERLACE
157170
tristate "Deinterlace support"
158171
depends on VIDEO_DEV && VIDEO_V4L2 && DMA_ENGINE

‎drivers/media/platform/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ obj-$(CONFIG_VIDEO_XILINX) += xilinx/
5858
obj-$(CONFIG_VIDEO_RCAR_VIN) += rcar-vin/
5959

6060
ccflags-y += -I$(srctree)/drivers/media/i2c
61+
62+
obj-$(CONFIG_VIDEO_MEDIATEK_VPU) += mtk-vpu/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mtk-vpu-y += mtk_vpu.o
2+
3+
obj-$(CONFIG_VIDEO_MEDIATEK_VPU) += mtk-vpu.o

0 commit comments

Comments
 (0)