1 # SPDX-License-Identifier: GPL-2.0-only
3 comment "Verisilicon media platform drivers"
6 tristate "Hantro VPU driver"
7 depends on ARCH_MXC || ARCH_ROCKCHIP || ARCH_AT91 || ARCH_SUNXI || ARCH_STM32 || COMPILE_TEST
8 depends on V4L_MEM2MEM_DRIVERS
10 select MEDIA_CONTROLLER
11 select VIDEOBUF2_DMA_CONTIG
12 select VIDEOBUF2_VMALLOC
13 select V4L2_MEM2MEM_DEV
15 select V4L2_JPEG_HELPER
18 Support for the Hantro IP based Video Processing Units present on
19 Rockchip, NXP i.MX8M and STM32MP25 SoCs, which accelerate video
20 and image encoding and decoding.
21 To compile this driver as a module, choose M here: the module
22 will be called hantro-vpu.
24 config VIDEO_HANTRO_HEVC_RFC
25 bool "Use reference frame compression for HEVC"
26 depends on VIDEO_HANTRO
29 Enable the reference frame compression feature for the HEVC codec.
30 It will use more memory but save bandwidth on memory bus.
32 config VIDEO_HANTRO_IMX8M
33 bool "Hantro VPU i.MX8M support"
34 depends on VIDEO_HANTRO
35 depends on ARCH_MXC || COMPILE_TEST
38 Enable support for i.MX8M SoCs.
40 config VIDEO_HANTRO_SAMA5D4
41 bool "Hantro VDEC SAMA5D4 support"
42 depends on VIDEO_HANTRO
43 depends on ARCH_AT91 || COMPILE_TEST
46 Enable support for Microchip SAMA5D4 SoCs.
48 config VIDEO_HANTRO_ROCKCHIP
49 bool "Hantro VPU Rockchip support"
50 depends on VIDEO_HANTRO
51 depends on ARCH_ROCKCHIP || COMPILE_TEST
54 Enable support for RK3288, RK3328, and RK3399 SoCs.
56 config VIDEO_HANTRO_SUNXI
57 bool "Hantro VPU Allwinner support"
58 depends on VIDEO_HANTRO
59 depends on ARCH_SUNXI || COMPILE_TEST
62 Enable support for H6 SoC.
64 config VIDEO_HANTRO_STM32MP25
65 bool "Hantro STM32MP25 support"
66 depends on VIDEO_HANTRO
67 depends on ARCH_STM32 || COMPILE_TEST
70 Enable support for STM32MP25 SoCs.