]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
engicam: Set console env on board_late_init
authorJagan Teki <jagan@amarulasolutions.com>
Fri, 12 May 2017 11:48:26 +0000 (17:18 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 31 May 2017 08:23:02 +0000 (10:23 +0200)
Set console env on board_late_init instead of configs.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/engicam/common/board.c
include/configs/imx6qdl_icore.h
include/configs/imx6qdl_icore_rqs.h
include/configs/imx6ul_geam.h
include/configs/imx6ul_isiot.h

index af4ef28dac9a3eea325aae4c8be2ea35a8059cb4..e3bb5698f63c316e2930bd9723de182c4634575a 100644 (file)
@@ -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;
index 00a533c4bbab4fa101196be83a2a3697850a17ce..f3e8481c9433481807ab1907f400cc163a35a76a 100644 (file)
@@ -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" \
index a74ee331bf8ed9cf819a8cc88a7230f43fbd6872..8f0128e250fa46684812264cf37682196237f73c 100644 (file)
@@ -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" \
index 8cd1466d2800091e7aac753e2e54d4012ed79e5d..f7c48240c21912ea666111fd39658986ceeabf5f 100644 (file)
@@ -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" \
index c09a754e9dec18d286635744a32609fccd8231d5..2dff5ee78e1cde94806cff2208e83b105a8846f6 100644 (file)
@@ -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" \