[U-Boot] [PATCH 7/9] engicam: Set console env on board_late_init

Jagan Teki jagan at openedev.com
Fri May 12 11:48:26 UTC 2017


From: Jagan Teki <jagan at amarulasolutions.com>

Set console env on board_late_init instead of configs.

Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 board/engicam/common/board.c        | 5 +++++
 include/configs/imx6qdl_icore.h     | 1 -
 include/configs/imx6qdl_icore_rqs.h | 1 -
 include/configs/imx6ul_geam.h       | 1 -
 include/configs/imx6ul_isiot.h      | 1 -
 5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c
index af4ef28..e3bb569 100644
--- a/board/engicam/common/board.c
+++ b/board/engicam/common/board.c
@@ -53,6 +53,11 @@ int board_late_init(void)
 		break;
 	}
 
+	if (is_mx6ul())
+		setenv("console", "ttymxc0");
+	else
+		setenv("console", "ttymxc3");
+
 	setenv_fdt_file();
 
 	return 0;
diff --git a/include/configs/imx6qdl_icore.h b/include/configs/imx6qdl_icore.h
index d325de7..7e4d0c1 100644
--- a/include/configs/imx6qdl_icore.h
+++ b/include/configs/imx6qdl_icore.h
@@ -40,7 +40,6 @@
 	"splashpos=m,m\0" \
 	"image=uImage\0" \
 	"fit_image=fit.itb\0" \
-	"console=ttymxc3\0" \
 	"fdt_high=0xffffffff\0" \
 	"fdt_addr=0x18000000\0" \
 	"boot_fdt=try\0" \
diff --git a/include/configs/imx6qdl_icore_rqs.h b/include/configs/imx6qdl_icore_rqs.h
index 846dc2b..525901b 100644
--- a/include/configs/imx6qdl_icore_rqs.h
+++ b/include/configs/imx6qdl_icore_rqs.h
@@ -35,7 +35,6 @@
 	"script=boot.scr\0" \
 	"image=uImage\0" \
 	"fit_image=fit.itb\0" \
-	"console=ttymxc3\0" \
 	"fdt_high=0xffffffff\0" \
 	"fdt_addr=0x18000000\0" \
 	"boot_fdt=try\0" \
diff --git a/include/configs/imx6ul_geam.h b/include/configs/imx6ul_geam.h
index cbbc617..9841686 100644
--- a/include/configs/imx6ul_geam.h
+++ b/include/configs/imx6ul_geam.h
@@ -39,7 +39,6 @@
 	"script=boot.scr\0" \
 	"image=uImage\0" \
 	"fit_image=fit.itb\0" \
-	"console=ttymxc0\0" \
 	"fdt_high=0xffffffff\0" \
 	"fdt_addr=0x87800000\0" \
 	"boot_fdt=try\0" \
diff --git a/include/configs/imx6ul_isiot.h b/include/configs/imx6ul_isiot.h
index ea2f333..f7fbaf2 100644
--- a/include/configs/imx6ul_isiot.h
+++ b/include/configs/imx6ul_isiot.h
@@ -40,7 +40,6 @@
 	"image=uImage\0" \
 	"fit_image=fit.itb\0" \
 	"splashpos=m,m\0" \
-	"console=ttymxc0\0" \
 	"fdt_high=0xffffffff\0" \
 	"fdt_addr=0x87800000\0" \
 	"boot_fdt=try\0" \
-- 
1.9.1



More information about the U-Boot mailing list