From 91e261b65ea21213753f808e32d19cd96d377abc Mon Sep 17 00:00:00 2001 From: Troy Benjegerdes Date: Mon, 19 Aug 2019 13:35:36 -0700 Subject: [PATCH] Try to work with linux kernel specified compat strings --- machine/uart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machine/uart.c b/machine/uart.c index 8cb47fb5..7ba7b064 100644 --- a/machine/uart.c +++ b/machine/uart.c @@ -47,6 +47,9 @@ static void uart_prop(const struct fdt_scan_prop *prop, void *extra) struct uart_scan *scan = (struct uart_scan *)extra; if (!strcmp(prop->name, "compatible") && !strcmp((const char*)prop->value, "sifive,uart0")) { scan->compat = 1; + } else if(!strcmp(prop->name, "compatible") && !strcmp((const char*)prop->value, + "sifive,fu540-c000-uart")) { + scan->compat = 1; } else if (!strcmp(prop->name, "reg")) { fdt_get_address(prop->node->parent, prop->value, &scan->reg); }