Skip to contentSkip to conversation

hw/char/cadence_uart: Reduce the size of MMIO to 0x80

PATCH Superseded Kuan-Jui Chiu 1 participant 1 message Sep 2

v5 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/13 hw/char/cadence_uart: Reduce the size of MMIO to 0x80

We don't need to reserve 4 KiB for MMIO since the last register implemented is R_TTRIG at address 0x44

This patch reduces the size of MMIO to 0x80 from 0x1000

---
 hw/char/cadence_uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/char/cadence_uart.c +1 -1
index eff6a3c4d1..8e23a378c4 100644
@@ -559,7 +559,7 @@ static void cadence_uart_init(Object *obj)
     SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
     CadenceUARTState *s = CADENCE_UART(obj);
 
-    memory_region_init_io(&s->iomem, obj, &uart_ops, s, "uart", 0x1000);
+    memory_region_init_io(&s->iomem, obj, &uart_ops, s, "uart", 0x80);
     sysbus_init_mmio(sbd, &s->iomem);
     sysbus_init_irq(sbd, &s->irq);
 
Signature · 1 line
2.34.1