]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(st-sdmmc2): manage CMD6
authorYann Gautier <yann.gautier@st.com>
Wed, 12 Jun 2019 13:48:05 +0000 (15:48 +0200)
committerYann Gautier <yann.gautier@st.com>
Tue, 16 Aug 2022 13:58:22 +0000 (15:58 +0200)
commit3deebd4ccf39904d7fe777f53e9dbaa86691d653
tree32669ae131c2ca18c33799a5704527976b219096
parente5b267bba14c55e7906d120c52d4e8e8bbb68df6
feat(st-sdmmc2): manage CMD6

For SD-cards, CMD6 is used to switch functions, like setting high speed
mode. As it has another meaning for eMMC, and may not work on standard
capacity SD-cards, it must be checked with MMC_IS_SD_HC flag.
As ACMD6 is also used, and will have the same index, a check on
CMD/ACMD commands is done: a boolean is stored depending on previous
command. It is set to true if CMD55 is issued, for other commands
it is set to false.

Change-Id: I6c2b9c7637656f858601ec075de1cb5f57af271a
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/st/mmc/stm32_sdmmc2.c