[dev][uart][pl011] switch configuration to a structure
This should be a bit easier to deal with going forward.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user