]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: Espressobin: When emmc is not present disable it also in OF_LIVE
authorPali Rohár <pali@kernel.org>
Sat, 27 Aug 2022 12:00:51 +0000 (14:00 +0200)
committerStefan Roese <sr@denx.de>
Tue, 13 Sep 2022 04:38:08 +0000 (06:38 +0200)
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/Marvell/mvebu_armada-37xx/board.c

index 3e5e0a0b5c6287da8f57698139eff048fea6cbc4..c6ecc323bb99d9e8e2cc2566036a8808cfe63763 100644 (file)
@@ -132,6 +132,8 @@ int board_late_init(void)
                dev = mmc_dev->dev;
                device_remove(dev, DM_REMOVE_NORMAL);
                device_unbind(dev);
+               if (of_live_active())
+                       ofnode_set_enabled(dev_ofnode(dev), false);
        }
 
        /* Ensure that 'env default -a' set correct value to $fdtfile */