diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2017-05-07 02:43:04 +0530 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-05-18 11:23:31 +0200 |
commit | 6f1f3f59ed8fa49d9020d52a5952afa170c084a6 (patch) | |
tree | bc59b602b1eb4a802ac29718085fae5f33cdaf8d /board/engicam | |
parent | 08273bc260cc1eee62cfb1ff4fd63d43e40ba023 (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')
-rw-r--r-- | board/engicam/geam6ul/geam6ul.c | 3 | ||||
-rw-r--r-- | board/engicam/icorem6/icorem6.c | 5 | ||||
-rw-r--r-- | board/engicam/icorem6_rqs/icorem6_rqs.c | 5 | ||||
-rw-r--r-- | board/engicam/isiotmx6ul/isiotmx6ul.c | 8 |
4 files changed, 21 insertions, 0 deletions
diff --git a/board/engicam/geam6ul/geam6ul.c b/board/engicam/geam6ul/geam6ul.c index 3593719d8f..eb0e533dfe 100644 --- a/board/engicam/geam6ul/geam6ul.c +++ b/board/engicam/geam6ul/geam6ul.c @@ -141,6 +141,9 @@ int board_late_init(void) break; } + if (is_mx6ul()) + setenv("fdt_file", "imx6ul-geam-kit.dtb"); + return 0; } diff --git a/board/engicam/icorem6/icorem6.c b/board/engicam/icorem6/icorem6.c index 55fc77fe04..0687329165 100644 --- a/board/engicam/icorem6/icorem6.c +++ b/board/engicam/icorem6/icorem6.c @@ -243,6 +243,11 @@ int board_late_init(void) break; } + if (is_mx6dq()) + setenv("fdt_file", "imx6q-icore.dtb"); + else if(is_mx6dl() || is_mx6solo()) + setenv("fdt_file", "imx6dl-icore.dtb"); + return 0; } diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c index 01380f1269..e95c165d41 100644 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c @@ -88,6 +88,11 @@ int board_late_init(void) break; } + if (is_mx6dq()) + setenv("fdt_file", "imx6q-icore-rqs.dtb"); + else if(is_mx6dl() || is_mx6solo()) + setenv("fdt_file", "imx6dl-icore-rqs.dtb"); + return 0; } 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; } |