]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c
SD : Updated CMD 6 implememtation.
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Thu, 7 Sep 2017 14:17:53 +0000 (19:47 +0530)
committerLeif Lindholm <leif.lindholm@linaro.org>
Thu, 7 Sep 2017 16:06:44 +0000 (17:06 +0100)
commitea21f1d98dcc7dd46575e89ee5a7e7a2b960fc17
treec926157cc0d4b78440452d915c481862017d01de
parent3d43616632763b4e68b8beaf3a8807e83b2c62f5
SD : Updated CMD 6 implememtation.

For setting high speed in SD card,
First CMD 6 (Switch) is send to check if card supports High Speed and
Second command is send to switch card to high speed mode.

In current inplementation, CMD 6 was sent only once to switch the
card into HS mode without checking if card supports HS or not, which is
not as per specification and also we are not setting the HS i.e. 50000000
but directly asking the card to switch to 26000000 which is incorrect as
SD card supports either 25000000 or 50000000.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Universal/MmcDxe/Mmc.h
EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c [changed mode: 0644->0755]