aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/cezanne/chip.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/chip.c b/src/soc/amd/cezanne/chip.c
index 6e4df42bb9..ffd56de66d 100644
--- a/src/soc/amd/cezanne/chip.c
+++ b/src/soc/amd/cezanne/chip.c
@@ -6,6 +6,9 @@
#include <types.h>
#include "chip.h"
+/* Supplied by uart.c */
+extern struct device_operations cezanne_uart_mmio_ops;
+
struct device_operations cpu_bus_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
@@ -20,6 +23,12 @@ static struct device_operations pci_domain_ops = {
static void set_mmio_dev_ops(struct device *dev)
{
+ switch (dev->path.mmio.addr) {
+ case APU_UART0_BASE:
+ case APU_UART1_BASE:
+ dev->ops = &cezanne_uart_mmio_ops;
+ break;
+ }
}
static void enable_dev(struct device *dev)