[dev][uart][pl011] switch configuration to a structure

This should be a bit easier to deal with going forward.
This commit is contained in:
Travis Geiselbrecht
2024-08-09 18:16:29 -07:00
parent 21bc71d8a2
commit 6fd2626359
3 changed files with 39 additions and 23 deletions

View File

@@ -66,7 +66,13 @@ void platform_early_init(void) {
arm_generic_timer_init(ARM_GENERIC_TIMER_PHYSICAL_INT, 0);
pl011_init_early(0, UART_BASE, UART0_INT, PL011_FLAG_DEBUG_UART);
struct pl011_config uart_config = {
.base = UART_BASE,
.irq = UART0_INT,
.flag = PL011_FLAG_DEBUG_UART,
};
pl011_init_early(0, &uart_config);
if (LOCAL_TRACE) {
LTRACEF("dumping FDT at %p\n", fdt);