summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/cezanne/uart.c')
-rw-r--r--src/soc/amd/cezanne/uart.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/uart.c b/src/soc/amd/cezanne/uart.c
index e5f2e4edbb..cf535d7aec 100644
--- a/src/soc/amd/cezanne/uart.c
+++ b/src/soc/amd/cezanne/uart.c
@@ -85,8 +85,13 @@ static void uart_enable(struct device *dev)
}
}
+static void uart_read_resources(struct device *dev)
+{
+ mmio_resource(dev, 0, dev->path.mmio.addr / KiB, 4);
+}
+
struct device_operations cezanne_uart_mmio_ops = {
- .read_resources = noop_read_resources,
+ .read_resources = uart_read_resources,
.set_resources = noop_set_resources,
.scan_bus = scan_static_bus,
.enable = uart_enable,