MLK-17586-2 mmc: add HS400 support for iMX7ULP
authorHaibo Chen <haibo.chen@nxp.com>
Sun, 11 Feb 2018 08:50:26 +0000 (16:50 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:45:57 +0000 (18:45 +0800)
commit74c2f5bdfc7813605766b090ecfb83cea04f0f5c
tree947eff0800097e4b3039b4233d44ac530c75a366
parent31649ea3d3fee8483c981c540c8ea120851facee
MLK-17586-2 mmc: add HS400 support for iMX7ULP

Add HS400 support for iMX7ULP B0.

According to IC suggest, need to clear the STROBE_DLL_CTRL_RESET
before any setting of STROBE_DLL_CTRL register.

USDHC has register bits(bit[27~20] of register STROBE_DLL_CTRL)
for slave sel vaule. If this register bits value is 0,  it needs
256 ref_clk cycles to update slave sel value. IC suggest to set
bit[27~20] to 0x4, it only need 4 ref_clk cycle to update slave
sel vaule. This will short the lock time of slave.

i.MX7ULP B0 will need more time to lock the REF and SLV, so change
to add another 5us delay.

Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/mmc/host/sdhci-esdhc-imx.c