forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
media: imx: imx8q: add imx8q vpu device driver
IMX8Q SoCs feature a powerful video processing unit able to decode many foramts and encode H.264. The vpu IP is amphion malone decoder and windsor encoder. This Driver is for this IP that is based on the v4l2 mem2mem framework. Supported SoCs are: IMX8QXP, IMX8QM Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Shijie Qin <shijie.qin@nxp.com> Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
- Loading branch information
1 parent
795aa60
commit 2fa6f8ecd73870259a9a985a8b214d5eb58a5314
Showing
12 changed files
with
896 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -86,3 +86,5 @@ obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ | ||
| obj-y += sunxi/ | ||
|
|
||
| obj-$(CONFIG_VIDEO_MESON_GE2D) += meson/ge2d/ | ||
|
|
||
| obj-y += imx/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # | ||
| # Codec configuration | ||
| # | ||
|
|
||
| config MXC_VPU_8Q | ||
| tristate "Support for MXC 8Q VPU(Video Processing Unit) Codec" | ||
| depends on ARCH_MXC | ||
| depends on MEDIA_SUPPORT | ||
| depends on VIDEO_DEV | ||
| depends on VIDEO_V4L2 | ||
| select V4L2_MEM2MEM_DEV | ||
| select VIDEOBUF2_DMA_CONTIG | ||
| select VIDEOBUF2_VMALLOC | ||
| default y | ||
| help | ||
| This is a V4L2 driver for NXP MXC 8Q video accelerator hardware. | ||
| It accelerates encoding and decoding operations on | ||
| various NXP SoCs. | ||
| To compile this driver as a module choose m here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| obj-$(CONFIG_MXC_VPU_8Q) += vpu-8q/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
| # Makefile for NXP VPU driver | ||
|
|
||
| vpu-8q-dev-objs += vpu_drv.o \ | ||
| vpu_dev_imx8q.o | ||
|
|
||
| vpu-8q-core-objs += vpu_core.o \ | ||
| vpu_mbox.o \ | ||
| vpu_v4l2.o \ | ||
| vpu_helpers.o \ | ||
| vpu_cmds.o \ | ||
| vpu_msgs.o \ | ||
| vpu_rpc.o \ | ||
| vpu_imx8q.o \ | ||
| vpu_windsor.o \ | ||
| vpu_malone.o \ | ||
| vpu_color.o \ | ||
| vdec.o \ | ||
| venc.o \ | ||
| vpu_dbg.o | ||
|
|
||
| obj-$(CONFIG_MXC_VPU_8Q) += vpu-8q-dev.o | ||
| obj-$(CONFIG_MXC_VPU_8Q) += vpu-8q-core.o |
Oops, something went wrong.