Skip to content

Commit

Permalink
kernel/video: add ARM GPU drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
aiamadeus committed Oct 30, 2023
1 parent fd7b5ec commit c8e9d22
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions package/kernel/linux/modules/video.mk
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,37 @@ endef

$(eval $(call KernelPackage,drm-imx-ldb))

define KernelPackage/drm-lima
SUBMENU:=$(VIDEO_MENU)
TITLE:=DRM support for ARM Mali 400/450 GPU
DEPENDS:=@(TARGET_rockchip||TARGET_sunxi) +kmod-drm-sched
KCONFIG:=CONFIG_DRM_LIMA
FILES:=$(LINUX_DIR)/drivers/gpu/drm/lima/lima.ko
AUTOLOAD:=$(call AutoProbe,lima)
endef

define KernelPackage/drm-lima/description
DRM driver for ARM Mali 400/450 GPUs
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-sched
KCONFIG:=CONFIG_DRM_PANFROST
FILES:=$(LINUX_DIR)/drivers/gpu/drm/panfrost/panfrost.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
Expand All @@ -470,6 +501,20 @@ endef

$(eval $(call KernelPackage,drm-radeon))

define KernelPackage/drm-sched
SUBMENU:=$(VIDEO_MENU)
TITLE:=DRM helper for ARM GPUs
DEPENDS:=+kmod-drm
HIDDEN:=1
KCONFIG:=CONFIG_DRM_SCHED
FILES:= \
$(LINUX_DIR)/drivers/gpu/drm/[email protected] \
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko
AUTOLOAD:=$(call AutoProbe,gpu-sched)
endef

$(eval $(call KernelPackage,drm-sched))

define KernelPackage/drm-nouveau
SUBMENU:=$(VIDEO_MENU)
TITLE:=nouveau DRM support
Expand Down

0 comments on commit c8e9d22

Please sign in to comment.