hw/char/cadence_uart: Reduce the size of MMIO to 0x80
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
Signed-off-by Kuan-Jui Chiu <[email protected]>
--- hw/char/cadence_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/char/cadence_uart.c +1 -1
@@ -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