mmc: check the revision for sd3.0
PATCH 1/1 mmc: check the revision for sd3.0
Support to check whether the SD3.0 or not.
Signed-off-by Jaehoon Chung <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/mmc/mmc.c | 2 ++ include/mmc.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
drivers/mmc/mmc.c +2 -0
@@ -759,6 +759,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 ;
include/mmc.h +1 -0
@@ -30,6 +30,7 @@#include <linux/compiler.h> #define SD_VERSION_SD 0x20000 +#define SD_VERSION_3 (SD_VERSION_SD | 0x30)#define SD_VERSION_2 (SD_VERSION_SD | 0x20)#define SD_VERSION_1_0 (SD_VERSION_SD | 0x10)#define SD_VERSION_1_10 (SD_VERSION_SD | 0x1a)
Signature · 1 line
1.7.5.4
PATCH 1/1 mmc: check the revision for sd3.0
Dear Jaehoon,
Quoted 11 lines
Jaehoon Chung <jh80.chung <at> samsung.com> writes:
Support to check whether the SD3.0 or not.
Signed-off-by Jaehoon Chung <jh80.chung <at> samsung.com>Signed-off-by Kyungmin Park <kyungmin.park <at> samsung.com>--- drivers/mmc/mmc.c | 2 ++ include/mmc.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
Tested-by Rommel Custodio <[email protected]>
Note:
The change only reflects in the output of mmcinfo.
The functionality of mmc_send_if_cond() and sd_send_op_cond() is unaffected.
All the best,
Rommel
Quoted 5 lines · Jaehoon Chung
Support to check whether the SD3.0 or not.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Tested-by Rommel Custodio <[email protected]>
Applied to u-boot/master with a fixup to apply / be correct with the other patch also applied, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130417/74d33562/attachment.pgp>