EmbeddedPkg: MmcDxe: wait OCR busy bit free
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sun, 13 Nov 2016 06:47:50 +0000 (14:47 +0800)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 14 Nov 2016 15:45:08 +0000 (15:45 +0000)
commit3201075377f80af632465361155f7498c177bad1
tree968d2e1ce868c0bae24656dd9b05d3c1c4dda142
parentbab82372a9e6ce066fa725a792e71d07191046ca
EmbeddedPkg: MmcDxe: wait OCR busy bit free

According to eMMC spec, OCR.PowerUp bit is also busy bit. If the busy
bit is '0', CMD1 should be sent and OCR should be fetched again. And add
a timeout counter on the repeated steps.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c