diff options
author | Pali Rohár <pali@kernel.org> | 2021-07-14 16:37:28 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-07-15 10:53:05 +0200 |
commit | 42ba56691ccae5a33da13a023a342fef4fa8f086 (patch) | |
tree | 0a3f1419d0b4646151e8d4729fc6b412ef5fc6da | |
parent | aeff1740b6f4896b13e9c300e60078ebd488f37b (diff) | |
download | u-boot-42ba56691ccae5a33da13a023a342fef4fa8f086.tar.gz |
arm: mvebu: Espressobin: Use function mmc_get_op_cond() for detecting eMMC
Use function mmc_get_op_cond() instead of mmc_init() for detecting presence
of eMMC. Documentation for this function says that it could be used to
detect the presence of SD/eMMC when no card detect logic is available.
This function is also used by mx6cuboxi board for detecting presence of eMMC.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | board/Marvell/mvebu_armada-37xx/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c index 5ff940cb35..5af3f2f062 100644 --- a/board/Marvell/mvebu_armada-37xx/board.c +++ b/board/Marvell/mvebu_armada-37xx/board.c @@ -124,7 +124,7 @@ int board_late_init(void) /* eMMC is mmc dev num 1 */ mmc_dev = find_mmc_device(1); - emmc = (mmc_dev && mmc_init(mmc_dev) == 0); + emmc = (mmc_dev && mmc_get_op_cond(mmc_dev) == 0); /* if eMMC is not present then remove it from DM */ if (!emmc && mmc_dev) { |