diff options
author | Baruch Siach <baruch@tkos.co.il> | 2020-09-09 15:14:39 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2020-09-24 10:13:39 +0200 |
commit | 5a3f5e61ca30cc454e7ca5419144598c746caf87 (patch) | |
tree | 79343e7146cdcbfd8b2ad3ca08395d68ed64aed5 /board | |
parent | 073ccfab5ffd522a35bef7b424a1ac824315b3c1 (diff) |
arm: mvebu: clearfog: don't override set fdtfile env
Only set the fdtfile environment variable when not already set.
Fixes: 867572f09ebe6 ("ARM: mvebu: clearfog: run-time selection of DT file")
Cc: Joel Johnson <mrjoel@lixil.net>
Reported-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/solidrun/clearfog/clearfog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c index d5535ebebe..92443d5177 100644 --- a/board/solidrun/clearfog/clearfog.c +++ b/board/solidrun/clearfog/clearfog.c @@ -240,6 +240,9 @@ int board_eth_init(struct bd_info *bis) int board_late_init(void) { + if (env_get("fdtfile")) + return 0; + cf_read_tlv_data(); if (sr_product_is(&cf_tlv_data, "Clearfog Base")) |