diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-08-02 10:11:29 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-08-02 10:11:29 +0000 |
commit | 2f3a2fa4793242b0fdcde9520dcde4843be41f82 (patch) | |
tree | 02ca2ad8bd3f655088b4776bbb9212942788f6d3 /edk2/EmbeddedPkg | |
parent | fb127df8fe36826abe56fd2c72c3b6778304238a (diff) |
EmbeddedPkg/MmcDxe: Fixed MmcIdentificationMode()
The condition to check if the card is ready was not correct.
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@13583 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/EmbeddedPkg')
-rw-r--r-- | edk2/EmbeddedPkg/Universal/MmcDxe/Mmc.h | 2 | ||||
-rw-r--r-- | edk2/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/edk2/EmbeddedPkg/Universal/MmcDxe/Mmc.h b/edk2/EmbeddedPkg/Universal/MmcDxe/Mmc.h index c7e8c7e9f..0c51428e9 100644 --- a/edk2/EmbeddedPkg/Universal/MmcDxe/Mmc.h +++ b/edk2/EmbeddedPkg/Universal/MmcDxe/Mmc.h @@ -69,7 +69,7 @@ typedef struct { UINT32 V270_V360: 9; // 2.70V - 3.60V
UINT32 RESERVED_1: 5; // Reserved
UINT32 AccessMode: 2; // 00b (byte mode), 10b (sector mode)
- UINT32 Busy: 1; // This bit is set to LOW if the card has not finished the power up routine
+ UINT32 PowerUp: 1; // This bit is set to LOW if the card has not finished the power up routine
} OCR;
typedef struct {
diff --git a/edk2/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c b/edk2/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c index 8940f519b..32a85196a 100644 --- a/edk2/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c +++ b/edk2/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c @@ -1,6 +1,6 @@ /** @file
*
-* Copyright (c) 2011, ARM Limited. All rights reserved.
+* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
@@ -252,7 +252,7 @@ MmcIdentificationMode ( DEBUG ((EFI_D_ERROR, "Not a SD2.0 Card\n"));
}
- // We need to wait for the MMC or SD card is ready => (gCardInfo.OCRData.Busy == 1)
+ // We need to wait for the MMC or SD card is ready => (gCardInfo.OCRData.PowerUp == 1)
Timeout = MAX_RETRY_COUNT;
while (Timeout > 0) {
// SD Card or MMC Card ? CMD55 indicates to the card that the next command is an application specific command
@@ -287,7 +287,7 @@ MmcIdentificationMode ( }
if (!EFI_ERROR(Status)) {
- if (MmcHostInstance->CardInfo.OCRData.Busy == 0) {
+ if (!MmcHostInstance->CardInfo.OCRData.PowerUp) {
MicroSecondDelay(1);
Timeout--;
} else {
|