kernel: add AMD DC support for UEFI boards

Enable AMD Display Controller support for AMD Radeon GPUs on UEFI systems.
Add custom_kernel_config__enable_amd_dc() to uefi_common.inc with the
following kernel options for all UEFI boards except cloud:

- DRM_AMD_DC: AMD Display Controller
- DRM_AMD_DC_DCN: Display Core Next support
- DRM_AMD_DC_DSC_SUPPORT: Display Stream Compression

Provides proper display engine support for AMD graphics cards on x86,
arm64, and loong64 UEFI platforms.

Signed-off-by: Igor Pecovnik <igor@armbian.com>
This commit is contained in:
Igor Pecovnik 2026-02-01 00:34:36 +01:00 committed by Igor
parent b499b45368
commit d92b94eb0a

View File

@ -87,3 +87,16 @@ function pre_customize_image__disable_few_armbian_services() {
chroot_sdcard systemctl disable armbian-hardware-optimize.service "||" true
chroot_sdcard systemctl disable armbian-led-state.service "||" true
}
function custom_kernel_config__enable_amd_dc() {
# Enables AMD Display Controller (DC) support for AMD GPUs
# This enables the display engine for AMD Radeon graphics cards,
# including DCN (Display Core Next) and DSC (Display Stream Compression)
# Only enabled for UEFI boards, excluding cloud branch
if [[ "${BRANCH}" != "cloud" ]]; then
display_alert "Enabling AMD DC support" "UEFI family ${LINUXFAMILY}" "debug"
opts_y+=("DRM_AMD_DC")
opts_y+=("DRM_AMD_DC_DCN")
opts_y+=("DRM_AMD_DC_DSC_SUPPORT")
fi
}