summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-06-01 00:29:10 +0200
committerLokesh Vutla <lokeshvutla@ti.com>2020-06-13 23:12:17 +0530
commit94e837b6fc4194c61ec12fd087c2ed26f94a50d3 (patch)
treec1d4b3855a9bcf4f38e9a77ea3a3c6029338bfc9
parentf459d322a9bdd06b06833b4a20c06c25059b8aa1 (diff)
downloadu-boot-94e837b6fc4194c61ec12fd087c2ed26f94a50d3.tar.gz
Nokia RX-51: Fix checking if serial console was enabled
There was incorrect logic for parsing OMAP_TAG_UART atag. Signed-off-by: Pali Rohár <pali@kernel.org>
-rw-r--r--board/nokia/rx51/rx51.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c
index 60a2e3619c..93d1b2febc 100644
--- a/board/nokia/rx51/rx51.c
+++ b/board/nokia/rx51/rx51.c
@@ -146,7 +146,7 @@ static void reuse_omap_atags(struct tag_omap *t)
}
break;
case OMAP_TAG_UART:
- if (!t->u.uart.enabled_uarts)
+ if (t->u.uart.enabled_uarts)
serial_was_console_enabled = 1;
break;
case OMAP_TAG_SERIAL_CONSOLE: