diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-01-09 19:06:25 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-01-09 19:06:25 +0000 |
commit | b4fdedc2543c6d193c70ae5339a56824a9729e68 (patch) | |
tree | 1d8a46ddffde25e288a0ff9507303e315939abc6 /EmbeddedPkg/Include | |
parent | 4f67c7ffa1ed419e44084b2679c49a2f4e95ba65 (diff) | |
download | edk2-b4fdedc2543c6d193c70ae5339a56824a9729e68.tar.gz edk2-b4fdedc2543c6d193c70ae5339a56824a9729e68.tar.bz2 edk2-b4fdedc2543c6d193c70ae5339a56824a9729e68.zip |
MmcDxe: Adding eMMC support
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15074 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Include')
-rw-r--r-- | EmbeddedPkg/Include/Protocol/MmcHost.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/EmbeddedPkg/Include/Protocol/MmcHost.h b/EmbeddedPkg/Include/Protocol/MmcHost.h index d04be6595c..08f2ad9349 100644 --- a/EmbeddedPkg/Include/Protocol/MmcHost.h +++ b/EmbeddedPkg/Include/Protocol/MmcHost.h @@ -1,7 +1,7 @@ /** @file
Definition of the MMC Host Protocol
- Copyright (c) 2011, ARM Limited. All rights reserved.
+ Copyright (c) 2011-2014, 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
@@ -64,6 +64,10 @@ typedef UINT32 MMC_CMD; #define MMC_CMD55 (MMC_INDX(55) | MMC_CMD_WAIT_RESPONSE)
#define MMC_ACMD41 (MMC_INDX(41) | MMC_CMD_WAIT_RESPONSE | MMC_CMD_NO_CRC_RESPONSE)
+// Valid responses for CMD1 in eMMC
+#define EMMC_CMD1_CAPACITY_LESS_THAN_2GB 0x00FF8080 // Capacity <= 2GB, byte addressing used
+#define EMMC_CMD1_CAPACITY_GREATER_THAN_2GB 0x40FF8080 // Capacity > 2GB, 512-byte sector addressing used
+
typedef enum _MMC_STATE {
MmcInvalidState = 0,
MmcHwInitializationState,
|