@@ -275,6 +275,8 @@ source "drivers/gpu/drm/nouveau/Kconfig"
source "drivers/gpu/drm/i915/Kconfig"
+source "drivers/gpu/drm/hantro/Kconfig"
+
config DRM_VGEM
tristate "Virtual GEM provider"
depends on DRM
@@ -71,6 +71,7 @@ obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
obj-$(CONFIG_DRM_MGA) += mga/
obj-$(CONFIG_DRM_I810) += i810/
obj-$(CONFIG_DRM_I915) += i915/
+obj-$(CONFIG_DRM_HANTRO) += hantro/
obj-$(CONFIG_DRM_MGAG200) += mgag200/
obj-$(CONFIG_DRM_V3D) += v3d/
obj-$(CONFIG_DRM_VC4) += vc4/
new file mode 100644
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config DRM_HANTRO
+ tristate "Hantro DRM"
+ depends on DRM
+ depends on ARM64
+ select DRM_PANEL
+ select DRM_KMS_HELPER
+ help
+ Choose this option if you have a system that has "Keem
+ Bay VPU" hardware which supports Verisilicon's Hantro
+ Video Processor Unit (VPU) IP, a series of video decoder
+ and encoder semiconductor IP cores which can be flexibly
+ configured for video surveillance, multimedia consumer
+ products, Internet of Things, cloud service products, data
+ centers, aerial photography and recorders, thereby providing
+ video transconding and multi-channel HD video encoding and
+ decoding.
+
+ Hantro VC8000D allows 4K decoding that supports H264 and HEVC
+ video formats. Hantro VC8000E allows 4K encoding that supports
+ H264 and HEVC video formats.
new file mode 100644
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for the Hantro DRM media codec driver. This driver provides
+# support for Keem Bay Hantro VPU IP.
+hantro-objs := hantro_drm.o hantro_enc.o hantro_dec.o hantro_fence.o
+obj-$(CONFIG_DRM_HANTRO) += hantro.o