From 88cb625ae2b1b6db87ca5d13ff7892d2473c309e Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Sat, 16 Oct 2021 23:05:09 +0800 Subject: [PATCH] kmod-drm-panfrost: add new package This driver can be used on AllWinner H6 and rk3399. Signed-off-by: AmadeusGhost (cherry picked from commit e34397d950caf5b82b208992240559c007f58a7f) --- package/kernel/linux/modules/video.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index db786d0a35..73d999f4f2 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -410,6 +410,24 @@ endef $(eval $(call KernelPackage,drm-lima)) +define KernelPackage/drm-panfrost + SUBMENU:=$(VIDEO_MENU) + TITLE:=DRM support for ARM Mali Midgard/Bifrost GPUs + DEPENDS:=@(TARGET_rockchip||TARGET_sunxi) +kmod-drm + KCONFIG:=CONFIG_DRM_PANFROST + FILES:= \ + $(LINUX_DIR)/drivers/gpu/drm/panfrost/panfrost.ko \ + $(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko + AUTOLOAD:=$(call AutoProbe,panfrost) +endef + +define KernelPackage/drm-panfrost/description + DRM driver for ARM Mali Midgard (T6xx, T7xx, T8xx) and + Bifrost (G3x, G5x, G7x) GPUs +endef + +$(eval $(call KernelPackage,drm-panfrost)) + define KernelPackage/drm-radeon SUBMENU:=$(VIDEO_MENU) TITLE:=Radeon DRM support