soc/amd/cezanne/uart: write ACPI tables

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I0faa94fb20daa50c69f25eae3e99e4519323bf5b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50781
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
diff --git a/src/soc/amd/cezanne/uart.c b/src/soc/amd/cezanne/uart.c
index 9d10fd0..6c82f1a 100644
--- a/src/soc/amd/cezanne/uart.c
+++ b/src/soc/amd/cezanne/uart.c
@@ -47,6 +47,18 @@
 	program_gpios(uart_info[idx].mux, 2);
 }
 
+static const char *uart_acpi_name(const struct device *dev)
+{
+	switch (dev->path.mmio.addr) {
+	case APU_UART0_BASE:
+		return "FUR0";
+	case APU_UART1_BASE:
+		return "FUR1";
+	default:
+		return NULL;
+	}
+}
+
 /* Even though this is called enable, it gets called for both enabled and disabled devices. */
 static void uart_enable(struct device *dev)
 {
@@ -77,4 +89,6 @@
 	.set_resources = noop_set_resources,
 	.scan_bus = scan_static_bus,
 	.enable = uart_enable,
+	.acpi_name = uart_acpi_name,
+	.acpi_fill_ssdt = uart_inject_ssdt,
 };