* [U-Boot] [PATCH] mmc: check the revision for sd3.0
@ 2013-01-30 8:58 Jaehoon Chung
2013-01-31 4:02 ` Rommel Custodio
2013-04-17 15:38 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Jaehoon Chung @ 2013-01-30 8:58 UTC (permalink / raw)
To: u-boot
Support to check whether the SD3.0 or not.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/mmc/mmc.c | 2 ++
include/mmc.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 72e8ce6..b704d8b 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -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;
diff --git a/include/mmc.h b/include/mmc.h
index a13e2bd..7c8f325 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -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)
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] mmc: check the revision for sd3.0
2013-01-30 8:58 [U-Boot] [PATCH] mmc: check the revision for sd3.0 Jaehoon Chung
@ 2013-01-31 4:02 ` Rommel Custodio
2013-04-17 15:38 ` [U-Boot] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Rommel Custodio @ 2013-01-31 4:02 UTC (permalink / raw)
To: u-boot
Dear Jaehoon,
>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 <sessyargc@gmail.com>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] mmc: check the revision for sd3.0
2013-01-30 8:58 [U-Boot] [PATCH] mmc: check the revision for sd3.0 Jaehoon Chung
2013-01-31 4:02 ` Rommel Custodio
@ 2013-04-17 15:38 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2013-04-17 15:38 UTC (permalink / raw)
To: u-boot
On Tue, Jan 29, 2013 at 10:58:16PM -0000, Jaehoon Chung wrote:
> Support to check whether the SD3.0 or not.
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Tested-by: Rommel Custodio <sessyargc@gmail.com>
Applied to u-boot/master with a fixup to apply / be correct with the
other patch also applied, thanks!
--
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-17 15:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30 8:58 [U-Boot] [PATCH] mmc: check the revision for sd3.0 Jaehoon Chung
2013-01-31 4:02 ` Rommel Custodio
2013-04-17 15:38 ` [U-Boot] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox