Autodetect of SD card speed?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autodetect of SD card speed?

586 Views
alampret
Contributor I

Hello everyone,

one basic question regarding boot_cfg and sd card speed.

The sd card speed is defined by BOOT_CFG parameters.

After successful boot does linux rely on the boot_cfg settings or is sd card speed auto-detected?

As an example, if I specify BOOT_CFG to SDR12 but SD card supports SDR104. Does linux automatically switch to SDR104 or do I need to correctly specify BOOT_CFG?

Thx in advance!

Best regards,

Alexander

Labels (2)
Tags (2)
0 Kudos
1 Reply

426 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alexander

in general linux should check available speed options and try max. option.

So seems it should try to switch to SDR104, note hardware should support voltage switching

and also dts has options like "pinctrl_usdhc1_200mhz":

linux-imx.git - i.MX Linux Kernel 

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

0 Kudos