Skip to content
Snippets Groups Projects
Commit c733913b authored by Yann Gautier's avatar Yann Gautier Committed by Sebastien Pasdeloup
Browse files

mmc: manage SD Switch Function for high speed mode


On SD-cards, Switch Function Command (CMD6) is used to switch functions,
like setting High Speed mode. It is useful for high capacity cards to
double frequency (from 25MHz by default to 50MHz).
If the SD-card is High Capacity, a CMD6 is issued after filling the device
information. If High Speed mode is supported and the switch is OK, then
the max_bus_freq can be set to 50MHz. The driver set_ios function should
then be called to update peripheral configuration, especially clock
prescaler.

Change-Id: I2d6807aa7f9440d2b2f907a747cd3b47a2ba1545
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/135783


Reviewed-by: default avatarCITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: default avatarCIBUILD <smet-aci-builds@lists.codex.cro.st.com>
Reviewed-by: default avatarLionel DEBIEVE <lionel.debieve@st.com>
parent 37bfd604
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment