Attention is currently required from: Jason Glenesk, Raul Rangel, Marshall Dawson. Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/50484 )
Change subject: soc/amd/cezanne/chip: set device operations for UART MMIO devices ......................................................................
soc/amd/cezanne/chip: set device operations for UART MMIO devices
Change-Id: I5df3a61741f05364e2c20725b0b85164b197dbdc Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/soc/amd/cezanne/chip.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/50484/1
diff --git a/src/soc/amd/cezanne/chip.c b/src/soc/amd/cezanne/chip.c index 6e4df42..ffd56de 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 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)