From ef7bebaf9bf24d3e90bcaae96387ce418e136b6d Mon Sep 17 00:00:00 2001 From: gsomlo Date: Mon, 5 Apr 2021 19:56:28 -0400 Subject: LiteX UART: fix compatible property name (#237) The upstream LiteX project defaults to "litex,liteuart" as the value for the "compatible" property of the UART DT node, so let's add it to the current list of accepted strings. Signed-off-by: Gabriel Somlo --- machine/uart_litex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.1