]> git.dujemihanovic.xyz Git - u-boot.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)
commit8974ff1a60365dedf1192632f5e0c21680d49dbc
tree78697d9c59fa301bb4dc77b0e228eed1e2f9b3bf
parent1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8
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