Improve the clock Settings for switching to high speed mode in the SDIO framework.

This commit is contained in:
guozhanxin 2020-11-27 17:28:49 +08:00
parent dfa99ad165
commit bb016927f8
1 changed files with 3 additions and 3 deletions

View File

@ -892,7 +892,7 @@ static rt_int32_t sdio_init_card(struct rt_mmcsd_host *host, rt_uint32_t ocr)
if (card->flags & CARD_FLAG_HIGHSPEED)
{
mmcsd_set_clock(host, 50000000);
mmcsd_set_clock(host, card->host->freq_max > 50000000 ? 50000000 : card->host->freq_max);
}
else
{