Skip to content

Commit

Permalink
Add uart0 fallback for T2, sigh
Browse files Browse the repository at this point in the history
Siguza committed Oct 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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;
}

0 comments on commit 6632a20

Please sign in to comment.