mmc: core: Add ->hs400_prepare_ddr() callback
authorYinbo Zhu <yinbo.zhu@nxp.com>
Fri, 23 Nov 2018 03:15:33 +0000 (11:15 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitcc14eec0889bb06abab3d6ea1e0e0676521542c8
tree67554ff20919840d9e3f52c172144850d1f608ae
parent52b5f5cfa2f736f3e478b65490736b62412dc11c
mmc: core: Add ->hs400_prepare_ddr() callback

Some eMMC controllers need specific settings for HS400 mode before the
speed mode can be switched to DDR mode, during the HS400 initialization
sequence. For that reason, let's introduce a new host callback,
->hs400_prepare_ddr() and invoked it just before switching to DDR mode.

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
include/linux/mmc/host.h