]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc_imx: add extra delay for IO voltage switch if necessary
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 22 Mar 2021 10:55:38 +0000 (18:55 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 21:59:50 +0000 (23:59 +0200)
commit868d5fb38e022d2b1022d89b1d586876ed8f2707
tree78697d9c59fa301bb4dc77b0e228eed1e2f9b3bf
parent49dc11164093080e2742f3e2cb995d6ed3576ad5
mmc: fsl_esdhc_imx: add extra delay for IO voltage switch if necessary

Some board like imx8mm-evkb, IO voltage switch from 3.3v to 1.8v need
around 18ms, common code only delay 10ms, so need to delay extra 8ms.
Otherwise voltage switch will timeout when wait for data0 line.

This IO voltage switch time depends on board design, depend on the
PMIC and capacitance. imx8mm-evkb board use PCA9450(PMIC) and 10uF
capacitance.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
arch/arm/dts/imx8mm-evk-u-boot.dtsi
drivers/mmc/fsl_esdhc_imx.c