[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 05/18] hw/char/avr: Reduce USART I/O size
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 05/18] hw/char/avr: Reduce USART I/O size |
Date: |
Mon, 20 Jan 2020 23:00:54 +0100 |
Per the datasheet the USART uses 7 consecutive 8-bit registers.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/char/avr_usart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c
index cb307fe23d..becdb87847 100644
--- a/hw/char/avr_usart.c
+++ b/hw/char/avr_usart.c
@@ -280,7 +280,7 @@ static void avr_usart_init(Object *obj)
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->rxc_irq);
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->dre_irq);
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->txc_irq);
- memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART, 8);
+ memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART, 7);
sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio);
qdev_init_gpio_in(DEVICE(s), avr_usart_pr, 1);
s->enabled = true;
--
2.21.1
- [PATCH v4 00/18] hw/avr: Introduce few Arduino boards, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 01/18] MAINTAINERS: Move machine test to the machine section (not ARCH one), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 02/18] MAINTAINERS: Move the AVR machines in new section (not within ARM), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 03/18] tests/acceptance: Do not set the machine type manually, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 04/18] tests/acceptance: Keep multilines comment consistent with other tests, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 05/18] hw/char/avr: Reduce USART I/O size,
Philippe Mathieu-Daudé <=
- [PATCH v4 07/18] hw/misc/avr_mask: Remove unused include, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 06/18] hw/timer/avr_timer16: Rename memory region debugging name, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 08/18] hw/avr/Makefile: Use CONFIG_AVR_SAMPLE variable, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 09/18] hw/char: Rename avr_usart -> atmel_usart, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 10/18] hw/timer: Rename avr_timer16 -> atmel_timer16, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 11/18] hw/misc: Rename avr_mask -> atmel_power, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 12/18] hw/avr: Introduce ATMEL_ATMEGA_MCU config, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 15/18] tests/boot-serial-test: Test some Arduino boards (AVR based), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 14/18] hw/avr: Add some Arduino boards, Philippe Mathieu-Daudé, 2020/01/20