kmod-drm-lima: rename and enable support for sunxi

This driver can be used on AllWinner h3/h5 and rk3328.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 971af214bc6652fb5dc67d6a7cd7360cef10ca0e)
This commit is contained in:
AmadeusGhost 2021-10-15 23:02:40 +08:00 committed by Tianling Shen
parent 280db75708
commit 9dad34f476
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 21 additions and 21 deletions

View File

@ -389,6 +389,27 @@ endef
$(eval $(call KernelPackage,drm-imx-ldb))
define KernelPackage/drm-lima
SUBMENU:=$(VIDEO_MENU)
TITLE:=Mali-4xx GPU support
DEPENDS:=@(TARGET_rockchip||TARGET_sunxi) +kmod-drm
KCONFIG:= \
CONFIG_DRM_VGEM \
CONFIG_DRM_GEM_CMA_HELPER=y \
CONFIG_DRM_LIMA
FILES:= \
$(LINUX_DIR)/drivers/gpu/drm/vgem/vgem.ko \
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko \
$(LINUX_DIR)/drivers/gpu/drm/lima/lima.ko
AUTOLOAD:=$(call AutoProbe,lima vgem)
endef
define KernelPackage/drm-lima/description
Open-source reverse-engineered driver for Mali-4xx GPUs
endef
$(eval $(call KernelPackage,drm-lima))
define KernelPackage/drm-radeon
SUBMENU:=$(VIDEO_MENU)
TITLE:=Radeon DRM support

View File

@ -43,24 +43,3 @@ define KernelPackage/drm-rockchip/description
endef
$(eval $(call KernelPackage,drm-rockchip))
define KernelPackage/gpu-lima
SUBMENU:=$(VIDEO_MENU)
TITLE:=Mali-4xx GPU support
DEPENDS:=@TARGET_rockchip +kmod-drm
KCONFIG:= \
CONFIG_DRM_VGEM \
CONFIG_DRM_GEM_CMA_HELPER=y \
CONFIG_DRM_LIMA
FILES:= \
$(LINUX_DIR)/drivers/gpu/drm/vgem/vgem.ko \
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko \
$(LINUX_DIR)/drivers/gpu/drm/lima/lima.ko
AUTOLOAD:=$(call AutoProbe,lima vgem)
endef
define KernelPackage/gpu-lima/description
Open-source reverse-engineered driver for Mali-4xx GPUs
endef
$(eval $(call KernelPackage,gpu-lima))