OSDN Git Service

mmc: mediatek: Use data tune for CMD line tune
authoryong mao <yong.mao@mediatek.com>
Wed, 15 Mar 2017 07:26:40 +0000 (15:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:43 +0000 (21:41 +0200)
commit1ede5cb88a29bba1aad1b68965c5fc8e00b20ed9
tree03e91fef3dd8880edf0669366bea6d692c89e490
parent50fde5637b6b66555036bd815c01e0aa38d38859
mmc: mediatek: Use data tune for CMD line tune

If we don't select a set of better parameters for our emmc host,
It may easily occur CMD response CRC error. And also it may cause
cannot boot up issue.

Fot getting a set of better parameters, our emmc host supports
data tune mechanism.Therefore, our emmc driver also should change
to use data tune for CMD line.

Because our emmc host use the different clock source to sample the
CMD signal between HS200 and HS400 mode, the parameters are also
different between these two modes.
Separate cmd internal delay for HS200/HS400 mode.

This change can fix "System can not boot up" issue.

Signed-off-by: Yong Mao <yong.mao@mediatek.com>
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c