mmc: support hs200 in spl

Change-Id: I9c25265a2a1e2b10a4e6815c918b6bba750c5df8
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2020-02-17 11:28:33 +08:00 committed by jason.zhu
parent 189f3a8c31
commit 1f250d0a05
1 changed files with 1 additions and 6 deletions

View File

@ -840,7 +840,6 @@ static int mmc_select_hs_ddr(struct mmc *mmc)
return 0;
}
#ifndef CONFIG_SPL_BUILD
static int mmc_select_hs200(struct mmc *mmc)
{
int ret;
@ -864,7 +863,6 @@ static int mmc_select_hs200(struct mmc *mmc)
return ret;
}
#endif
static int mmc_select_hs400(struct mmc *mmc)
{
@ -995,12 +993,9 @@ static int mmc_change_freq(struct mmc *mmc)
avail_type = mmc_select_card_type(mmc, ext_csd);
#ifndef CONFIG_SPL_BUILD
if (avail_type & EXT_CSD_CARD_TYPE_HS200)
err = mmc_select_hs200(mmc);
else
#endif
if (avail_type & EXT_CSD_CARD_TYPE_HS)
else if (avail_type & EXT_CSD_CARD_TYPE_HS)
err = mmc_select_hs(mmc);
else
err = -EINVAL;