aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/lpc-uart.c')
-rw-r--r--hw/lpc-uart.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index 3224de9..ea71ac5 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -1,4 +1,4 @@
-/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -438,7 +438,12 @@ static void uart_setup_os_passthrough(void)
dt_add_property_strings(uart_node, "status", "ok");
path = dt_get_path(uart_node);
- dt_add_property_string(dt_chosen, "linux,stdout-path", path);
+
+
+ dt_add_property_string(dt_chosen, "stdout-path", path);
+ if (proc_gen < proc_gen_p9)
+ dt_add_property_string(dt_chosen, "linux,stdout-path", path);
+
free(path);
/* Setup LPC client for OS interrupts */
@@ -460,8 +465,11 @@ static void uart_setup_opal_console(void)
/* Add the opal console node */
add_opal_console_node(0, "raw", OUT_BUF_SIZE);
- dt_add_property_string(dt_chosen, "linux,stdout-path",
+ dt_add_property_string(dt_chosen, "stdout-path",
"/ibm,opal/consoles/serial@0");
+ if (proc_gen < proc_gen_p9)
+ dt_add_property_string(dt_chosen, "linux,stdout-path",
+ "/ibm,opal/consoles/serial@0");
/*
* We mark the UART as reserved since we don't want the