mirror of
https://github.com/coolsnowwolf/lede
synced 2025-01-08 11:47:42 +08:00
video.mk: add AMD Displaycard (RX580) support for loongarch64
This commit is contained in:
parent
a5a63865ff
commit
f426fce6c1
@ -57,20 +57,23 @@ $(eval $(call KernelPackage,backlight-pwm))
|
||||
define KernelPackage/acpi-video
|
||||
SUBMENU:=$(VIDEO_MENU)
|
||||
TITLE:=ACPI Extensions For Display Adapters
|
||||
DEPENDS:=@TARGET_x86 +kmod-backlight
|
||||
DEPENDS:=@TARGET_x86||TARGET_loongarch64 +kmod-backlight
|
||||
HIDDEN:=1
|
||||
KCONFIG:= \
|
||||
CONFIG_ACPI_WMI \
|
||||
CONFIG_ACPI_VIDEO
|
||||
FILES:=$(LINUX_DIR)/drivers/acpi/video.ko \
|
||||
$(LINUX_DIR)/drivers/platform/x86/wmi.ko
|
||||
AUTOLOAD:=$(call AutoProbe,wmi video)
|
||||
KCONFIG:=CONFIG_ACPI_VIDEO
|
||||
FILES:=$(LINUX_DIR)/drivers/acpi/video.ko
|
||||
AUTOLOAD:=$(call AutoProbe,video)
|
||||
endef
|
||||
|
||||
define KernelPackage/acpi-video/description
|
||||
Kernel support for integrated graphics devices
|
||||
endef
|
||||
|
||||
define KernelPackage/acpi-video/x86
|
||||
KCONFIG+=CONFIG_ACPI_WMI
|
||||
FILES+=$(LINUX_DIR)/drivers/platform/x86/wmi.ko
|
||||
AUTOLOAD:=$(call AutoProbe,wmi video)
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,acpi-video))
|
||||
|
||||
|
||||
@ -282,15 +285,18 @@ define KernelPackage/drm
|
||||
HIDDEN:=1
|
||||
DEPENDS:=+kmod-dma-buf +kmod-i2c-core +kmod-backlight \
|
||||
+(LINUX_5_15||LINUX_6_1):kmod-fb
|
||||
KCONFIG:= \
|
||||
CONFIG_DRM \
|
||||
KCONFIG:=CONFIG_DRM \
|
||||
CONFIG_DRM_EXEC@ge6.6 \
|
||||
CONFIG_DRM_SUBALLOC_HELPER@ge6.4
|
||||
CONFIG_DRM_FBDEV_EMULATION=y \
|
||||
CONFIG_DRM_FBDEV_OVERALLOC=100 \
|
||||
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/gpu/drm/drm.ko \
|
||||
$(LINUX_DIR)/drivers/gpu/drm/drm_panel_orientation_quirks.ko
|
||||
AUTOLOAD:=$(call AutoLoad,05,drm)
|
||||
$(LINUX_DIR)/drivers/gpu/drm/drm_panel_orientation_quirks.ko \
|
||||
$(LINUX_DIR)/drivers/gpu/drm/drm_exec.ko@ge6.6 \
|
||||
$(LINUX_DIR)/drivers/gpu/drm/drm_suballoc_helper.ko@ge6.4
|
||||
AUTOLOAD:=$(call AutoLoad,05,drm_exec@ge6.6 drm_suballoc_helper@ge6.4 drm)
|
||||
endef
|
||||
|
||||
define KernelPackage/drm/description
|
||||
@ -302,7 +308,7 @@ $(eval $(call KernelPackage,drm))
|
||||
define KernelPackage/drm-buddy
|
||||
SUBMENU:=$(VIDEO_MENU)
|
||||
TITLE:=A page based buddy allocator
|
||||
DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-drm @LINUX_6_1
|
||||
DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-drm @LINUX_6_1||LINUX_6_6
|
||||
KCONFIG:=CONFIG_DRM_BUDDY
|
||||
FILES:= $(LINUX_DIR)/drivers/gpu/drm/drm_buddy.ko
|
||||
AUTOLOAD:=$(call AutoProbe,drm_buddy)
|
||||
@ -361,7 +367,7 @@ $(eval $(call KernelPackage,drm-kms-helper))
|
||||
define KernelPackage/drm-display-helper
|
||||
SUBMENU:=$(VIDEO_MENU)
|
||||
TITLE:=DRM helpers for display adapters drivers
|
||||
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm +TARGET_x86:kmod-drm-buddy @LINUX_6_1
|
||||
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm +TARGET_x86:kmod-drm-buddy @LINUX_6_1||LINUX_6_6
|
||||
KCONFIG:=CONFIG_DRM_DISPLAY_HELPER
|
||||
FILES:=$(LINUX_DIR)/drivers/gpu/drm/display/drm_display_helper.ko
|
||||
AUTOLOAD:=$(call AutoProbe,drm_display_helper)
|
||||
@ -376,7 +382,7 @@ $(eval $(call KernelPackage,drm-display-helper))
|
||||
define KernelPackage/drm-amdgpu
|
||||
SUBMENU:=$(VIDEO_MENU)
|
||||
TITLE:=AMDGPU DRM support
|
||||
DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-ttm \
|
||||
DEPENDS:=@TARGET_x86||TARGET_loongarch64 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-ttm \
|
||||
+kmod-drm-kms-helper +kmod-i2c-algo-bit +amdgpu-firmware \
|
||||
+LINUX_6_1:kmod-drm-display-helper +LINUX_6_1:kmod-acpi-video
|
||||
KCONFIG:=CONFIG_DRM_AMDGPU \
|
||||
@ -393,6 +399,15 @@ define KernelPackage/drm-amdgpu/description
|
||||
Direct Rendering Manager (DRM) support for AMDGPU Cards
|
||||
endef
|
||||
|
||||
define KernelPackage/drm-amdgpu/loongarch64
|
||||
KCONFIG+=CONFIG_DRM_AMDGPU_USERPTR=y \
|
||||
CONFIG_DRM_AMD_DC=y \
|
||||
CONFIG_DRM_AMD_DC_FP=y \
|
||||
CONFIG_DRM_AMD_DC_SI=y
|
||||
FILES+=$(LINUX_DIR)/drivers/gpu/drm/amd/amdxcp/amdxcp.ko
|
||||
AUTOLOAD:=$(call AutoProbe,amdxcp amdgpu)
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,drm-amdgpu))
|
||||
|
||||
|
||||
@ -648,9 +663,10 @@ $(eval $(call KernelPackage,video-pwc))
|
||||
define KernelPackage/video-uvc
|
||||
TITLE:=USB Video Class (UVC) support
|
||||
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-video-videobuf2 +kmod-input-core
|
||||
KCONFIG:= CONFIG_USB_VIDEO_CLASS
|
||||
FILES:=$(LINUX_DIR)/drivers/media/$(V4L2_USB_DIR)/uvc/uvcvideo.ko
|
||||
AUTOLOAD:=$(call AutoProbe,uvcvideo)
|
||||
KCONFIG:= CONFIG_USB_VIDEO_CLASS CONFIG_UVC_COMMON@ge6.3
|
||||
FILES:=$(LINUX_DIR)/drivers/media/$(V4L2_USB_DIR)/uvc/uvcvideo.ko \
|
||||
$(LINUX_DIR)/drivers/media/common/uvc.ko@ge6.3
|
||||
AUTOLOAD:=$(call AutoProbe,uvc@ge6.3 uvcvideo)
|
||||
$(call AddDepends/camera)
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user