]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: stm32_sdmmc2: Add support for probing bus voltage level translator
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:29:43 +0000 (03:29 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
commitadc0716b2c19f069b2b952e0def2ed65d52b387c
tree3a3121571303be2a7b279ce121b7ff85d36425fa
parentffce4f682dd0d7d76efc5d2d446c973b8a8138bc
mmc: stm32_sdmmc2: Add support for probing bus voltage level translator

Add support for testing whether bus voltage level translator is present
and operational. This is useful on systems where the bus voltage level
translator is optional, as the translator can be auto-detected by the
driver and the feedback clock functionality can be disabled if it is
not present.

The translator test sets CMD high to avoid interfering with a card, and
then verifies whether signal set on CK is detected on CKIN. If the signal
is detected, translator is present, otherwise the CKIN feedback clock are
disabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Yann Gautier <yann.gautier@foss.st.com>
drivers/mmc/stm32_sdmmc2.c