summaryrefslogtreecommitdiff
path: root/board/engicam/isiotmx6ul/isiotmx6ul.c
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2017-05-07 02:43:04 +0530
committerStefano Babic <sbabic@denx.de>2017-05-18 11:23:31 +0200
commit6f1f3f59ed8fa49d9020d52a5952afa170c084a6 (patch)
treebc59b602b1eb4a802ac29718085fae5f33cdaf8d /board/engicam/isiotmx6ul/isiotmx6ul.c
parent08273bc260cc1eee62cfb1ff4fd63d43e40ba023 (diff)
engicam: Set fdt_file env during run-time
Set fdt_file env variable during board_late_init Cc: Stefano Babic <sbabic@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/engicam/isiotmx6ul/isiotmx6ul.c')
-rw-r--r--board/engicam/isiotmx6ul/isiotmx6ul.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/engicam/isiotmx6ul/isiotmx6ul.c b/board/engicam/isiotmx6ul/isiotmx6ul.c
index 29a137dc81..5d1c693e22 100644
--- a/board/engicam/isiotmx6ul/isiotmx6ul.c
+++ b/board/engicam/isiotmx6ul/isiotmx6ul.c
@@ -149,6 +149,14 @@ int board_late_init(void)
break;
}
+ if (is_mx6ul()) {
+#ifdef CONFIG_ENV_IS_IN_MMC
+ setenv("fdt_file", "imx6ul-isiot-emmc.dtb");
+#else
+ setenv("fdt_file", "imx6ul-isiot-nand.dtb");
+#endif
+ }
+
return 0;
}