]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: clearfog: don't override set fdtfile env
authorBaruch Siach <baruch@tkos.co.il>
Wed, 9 Sep 2020 12:14:39 +0000 (15:14 +0300)
committerStefan Roese <sr@denx.de>
Thu, 24 Sep 2020 08:13:39 +0000 (10:13 +0200)
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>
board/solidrun/clearfog/clearfog.c

index d5535ebebecda12fe8942434ec666106cddb4a0e..92443d5177d95bfb037002b38db5b6745f45ead0 100644 (file)
@@ -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"))