aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machine/uart_litex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/machine/uart_litex.c b/machine/uart_litex.c
index 1fe0359..3f0162e 100644
--- a/machine/uart_litex.c
+++ b/machine/uart_litex.c
@@ -45,7 +45,8 @@ static void uart_litex_prop(const struct fdt_scan_prop *prop, void *extra)
{
struct uart_litex_scan *scan = (struct uart_litex_scan *)extra;
if (!strcmp(prop->name, "compatible") &&
- !strcmp((const char *)prop->value, "litex,uart0")) {
+ (!strcmp((const char *)prop->value, "litex,uart0") ||
+ !strcmp((const char *)prop->value, "litex,liteuart"))) {
scan->compat = 1;
} else if (!strcmp(prop->name, "reg")) {
fdt_get_address(prop->node->parent, prop->value, &scan->reg);