Skip to content
Snippets Groups Projects
Commit 1741c64d authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Tom Rini
Browse files

mmc: check the revision for sd3.0


Support to check whether the SD3.0 or not.

Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Tested-by: default avatarRommel Custodio <sessyargc@gmail.com>
parent 64f4a619
No related branches found
No related tags found
No related merge requests found
......@@ -784,6 +784,8 @@ retry_scr:
break;
case 2:
mmc->version = SD_VERSION_2;
if ((mmc->scr[0] >> 15) & 0x1)
mmc->version = SD_VERSION_3;
break;
default:
mmc->version = SD_VERSION_1_0;
......
......@@ -30,6 +30,7 @@
#include <linux/compiler.h>
#define SD_VERSION_SD 0x20000
#define SD_VERSION_3 (SD_VERSION_SD | 0x300)
#define SD_VERSION_2 (SD_VERSION_SD | 0x200)
#define SD_VERSION_1_0 (SD_VERSION_SD | 0x100)
#define SD_VERSION_1_10 (SD_VERSION_SD | 0x10a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment