From 97291b5838358df157e134d5764f457ed59ecf2f Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Mon, 10 Nov 2025 13:17:29 +0100 Subject: [PATCH] soc/amd/cezanne: Optionally propagate UART0 through ACPI Unable to passthrough the UART0 in domU when UART1 enabled in dom0 Signed-off-by: Maximilian Brune Change-Id: I7ccf366dbac556f68096382644f3e72b13e2dbf9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90210 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/soc/amd/cezanne/Kconfig | 8 ++++++++ src/soc/amd/cezanne/acpi/mmio.asl | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/soc/amd/cezanne/Kconfig b/src/soc/amd/cezanne/Kconfig index e7767f36f4..eeb4266c84 100644 --- a/src/soc/amd/cezanne/Kconfig +++ b/src/soc/amd/cezanne/Kconfig @@ -351,6 +351,14 @@ config DISABLE_KEYBOARD_RESET_PIN functionality isn't disabled, configuring it as an output and driving it as 0 will cause a reset. +config UART0_REMOVE_FROM_DSDT + bool "Do not add UART0 to ACPI DSDT" + default n + help + Select this option to remove the UART0 device from the ACPI DSDT, so that the UART + can be passed through to domU instead of being used by dom0 in the virtualization + case. + menu "PSP Configuration Options" config AMDFW_CONFIG_FILE diff --git a/src/soc/amd/cezanne/acpi/mmio.asl b/src/soc/amd/cezanne/acpi/mmio.asl index c138cbcb03..647ab748f2 100644 --- a/src/soc/amd/cezanne/acpi/mmio.asl +++ b/src/soc/amd/cezanne/acpi/mmio.asl @@ -94,6 +94,7 @@ Device (MMC0) } } +#if !CONFIG(UART0_REMOVE_FROM_DSDT) Device (FUR0) { Name (_HID, "AMDI0020") @@ -131,6 +132,7 @@ Device (FUR0) AOAC_DEVICE(FCH_AOAC_DEV_UART0, 0) } +#endif Device (FUR1) { Name (_HID, "AMDI0020")