]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc_imx: optimize the timing setting
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 3 Nov 2020 09:18:35 +0000 (17:18 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 6 Dec 2020 14:31:37 +0000 (15:31 +0100)
commit632d2aa6ff10ddfbc79fa7a97a84d2baddef80db
treeb61037e092ab54e2a990e3d69512985cc182febb
parent50f88714ea4df2e161ee14f3644432261f0e29f4
mmc: fsl_esdhc_imx: optimize the timing setting

For imx usdhc/esdhc, once set the DDR_EN, enable the DDR mode, the
card clock will be divied by 2 automatically by the host. So need
to first config the DDR_EN correctly, then update the card clock.
This will make sure the actual card clock is as our expected.
IC also suggest config the DDR_EN firstly, then config the clock
divider.

For HS400/HS400ES mode, need to config the strobe dll, this need
to based on the correct target clock rate, so need to do this after
clock rate is update.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc_imx.c