dev/serial: Refactor the pl011 driver

- Refactor the pl011 driver to be extensible.
- Add IRQ support and baudrate configuration support for pl011 driver.
- Modify related BSP.
- Add doxygen comments for arm-pl011.

Close #5026

Co-authored-by: Ning Yang <yangn0@qq.com>
This commit is contained in:
Utkarsh Verma
2024-08-29 02:10:12 +08:00
committed by Gedare Bloom
parent d304a817db
commit 0f42153959
20 changed files with 808 additions and 525 deletions

View File

@@ -37,9 +37,10 @@
arm_pl011_context xen_vpl011_context = {
.base = RTEMS_TERMIOS_DEVICE_CONTEXT_INITIALIZER("PL011"),
.regs = (volatile pl011 *) BSP_XEN_VPL011_BASE,
.regs = (arm_pl011_uart *) BSP_XEN_VPL011_BASE,
.irq = GUEST_VPL011_SPI,
.initial_baud = 115200
.initial_baud = 115200,
.clock = 24000000
};
const console_device console_device_table[] = {