hw/display/sm501: Always map the UART0
The SM501 is a Mobile Multimedia Companion Chip with 2 UARTs. This model only implements the first UART. Being part of the chipset, the UART block is always mapped in memory, regardless of whether we provide a chardev backend. Since commit 12051d82f, qemu_chr_fe_init() accepts a NULL chardev. Let's remove the chardev check and always map the UART in the chipset memory. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191122133623.13004-1-philmd@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
cdbc5c51c8
commit
7aca3782d9
@ -1958,11 +1958,9 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp)
|
|||||||
sysbus_pass_irq(sbd, SYS_BUS_DEVICE(usb_dev));
|
sysbus_pass_irq(sbd, SYS_BUS_DEVICE(usb_dev));
|
||||||
|
|
||||||
/* bridge to serial emulation module */
|
/* bridge to serial emulation module */
|
||||||
if (s->chr_state) {
|
serial_mm_init(&s->state.mmio_region, SM501_UART0, 2,
|
||||||
serial_mm_init(&s->state.mmio_region, SM501_UART0, 2,
|
NULL, /* TODO : chain irq to IRL */
|
||||||
NULL, /* TODO : chain irq to IRL */
|
115200, s->chr_state, DEVICE_LITTLE_ENDIAN);
|
||||||
115200, s->chr_state, DEVICE_LITTLE_ENDIAN);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property sm501_sysbus_properties[] = {
|
static Property sm501_sysbus_properties[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user