Skip to content

Commit

Permalink
Add uart0 fallback for T2, sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Siguza committed Oct 13, 2024
1 parent fe98206 commit 6632a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/uart/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ static dt_node_t* serial_dt_node(void)
static dt_node_t *uart = NULL;
if(!uart)
{
uart = dt_node_parent(dt_get("debug-console"));
dt_node_t *console = dt_find(gDeviceTree, "debug-console");
uart = console ? dt_node_parent(console) : dt_get("uart0");
}
return uart;
}
Expand Down

0 comments on commit 6632a20

Please sign in to comment.