[U-Boot] [PATCH] ls102xa: dm: serial: Disable CONFIG_DM_STDIO for LCD/HDMI display

Alison Wang b18965 at freescale.com
Tue Mar 1 10:06:57 CET 2016


When LCD/HDMI is connected to LS1021ATWR or LS1021AQDS, the console
output should be shown on the monitor.

If CONFIG_DM_SERIAL and CONFIG_DM_STDIO are both enabled, serial device
is registered and added to the stdio list in serial-uclass.c. Then, vga
device will be registered and added to the stdio list in cfb_console.c.
So serial device is at the head of the stdio list and will be chosen as
the input and output device in console_init_r(). It will cause the
console output can't be shown on the monitor.

If CONFIG_DM_STDIO is disabled when using CONFIG_DM_SERIAL. First, vga
device is registered and added to the stdio list in cfb_console.c. Then
serial device will be registered and added to the stdio list in
drv_system_init(). So vga device is at the head of the stdio list and
will be chosen as the input and output device in console_init_r(). The
console output will be shown on the monitor.

The patch is to disabled CONFIG_DM_STDIO for LCD/HDMI display.

Signed-off-by: Alison Wang <alison.wang at nxp.com>
---
 include/configs/ls1021aqds.h | 4 ++++
 include/configs/ls1021atwr.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index ff5ca22..fbb1f46 100644
--- a/include/configs/ls1021aqds.h
+++ b/include/configs/ls1021aqds.h
@@ -384,6 +384,10 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_BAUDRATE			115200
 
+#ifdef CONFIG_DM_SERIAL
+#undef CONFIG_DM_STDIO
+#endif
+
 /*
  * I2C
  */
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 166061d..9054774 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -280,6 +280,10 @@
 
 #define CONFIG_BAUDRATE			115200
 
+#ifdef CONFIG_DM_SERIAL
+#undef CONFIG_DM_STDIO
+#endif
+
 /*
  * I2C
  */
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list