]> git.baikalelectronics.ru Git - uboot.git/commit
atmel_sdhci: Force card-detect if MMC_CAP_NONREMOVABLE.
authorZixun LI <admin@hifiphile.com>
Wed, 17 May 2023 13:49:45 +0000 (15:49 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Mon, 24 Jul 2023 11:21:00 +0000 (14:21 +0300)
commit4c3db36c024d2f576bf6b4d5c46e10f61a2e8577
tree879cb0ed8d9e7534805e92dbd66ff74e2eb820ab
parent439b97aa6a7b839f2e0ff83e55cee6f2fb659cb3
atmel_sdhci: Force card-detect if MMC_CAP_NONREMOVABLE.

If the device attached to the MMC bus is not removable, set force card-detect
bit to bypass card detection procedure, so card detection pin can be used for
other purposes.

It's also a workaround for SAMA5D2 who doesn't drive CMD if using GPIO for card
detection.

Signed-off-by: Zixun LI <zli@ogga.fr>
Reviewed-by: Eugen Hristev <eugen.hristev@collabora.com>
drivers/mmc/atmel_sdhci.c