Merge pull request #4096 from Guozhanxin/sdio_fix

完善sdio框架中切换到高速模式时的时钟设置
This commit is contained in:
Bernard Xiong 2020-11-28 06:48:14 +08:00 committed by GitHub
commit af95348bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{