Sample C code to disable MMC High Speed Mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Sample C code to disable MMC High Speed Mode

跳至解决方案
1,600 次查看
vincentchou
Contributor IV

Dear sir,

Right now we are using i.MX6 Solo Lite EVK and need to port a Wifi driver.  Unfortunately, we also need to figure out how to disable SDIO High Speed mode on the same Wifi Module SDIO interface. I checked IMX6SLRM pdf file and discovered the following description in the section 54. 

====================

disable_sdio_high_speed_mode(void)

{

send CMD52 to clear bit EHS at address 0x13 and read after write to confirm EHS bit is

cleared;

change clock divisor value or configure the system clock feeding into uSDHC to generate the

card_clk of the desired value below 25MHz;

(data transactions like normal peers)

}

====================

Could anyone share some coding example to meet the description in the above section?  That would save me some time to understand how to control the register in i.MX6SL.  Let me thank you beforehand!

Vincent

标签 (4)
0 项奖励
回复
1 解答
1,348 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vincent

please look at SDK uSDHC tests

i.MX 6Series Platform SDK : Bare-metal SDK

Check link below

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,349 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vincent

please look at SDK uSDHC tests

i.MX 6Series Platform SDK : Bare-metal SDK

Check link below

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复