]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg: Fix Command Argument for SD/eMMC R/W operation.
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Thu, 24 Jan 2019 14:05:18 +0000 (19:35 +0530)
committerLeif Lindholm <leif.lindholm@linaro.org>
Wed, 30 Jan 2019 17:47:26 +0000 (17:47 +0000)
commitb566259c8a2447cc3db9979d815d955a90431520
tree2c6dbc41e0828237c24ba62067b13062f5ddbe07
parentd5788777bcc75936cc0e6acb540a5ee6ac77866b
EmbeddedPkg: Fix Command Argument for SD/eMMC R/W operation.

Issue : SD read failure for high capacity cards e.g. 64 GB

Reason : Command argument value exceeds 32 bit for block number 0x3787FFF
and cant be fit into 32 bit wide SD host controller register.

Fix :
AccessMode bits [29:30] of OCR is a valid definition to calculate
data address for eMMC cards.

For SD cards, data address is calculated on the basis of
card capacity status bit[30] of OCR.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Universal/MmcDxe/Mmc.h
EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c