mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Cc: Peter Seiderer <ps.report@gmx.net>
Subject: [PATCH 2/4] mmc: add eMMC v5 and V5.1 detection support
Date: Thu, 18 May 2017 14:01:13 +0200	[thread overview]
Message-ID: <20170518120115.8040-2-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20170518120115.8040-1-s.hauer@pengutronix.de>

From: Peter Seiderer <ps.report@gmx.net>

Just add the defines.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 drivers/mci/mci-core.c | 6 ++++++
 include/mci.h          | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index b6ef506540..07911d43d7 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -770,6 +770,12 @@ static void mci_correct_version_from_ext_csd(struct mci *mci)
 		case 6:
 			mci->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mci->version = MMC_VERSION_5_0;
+			break;
+		case 8:
+			mci->version = MMC_VERSION_5_1;
+			break;
 		}
 	}
 }
diff --git a/include/mci.h b/include/mci.h
index eb942e62b8..bc7d9c95b2 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -54,6 +54,8 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x430)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x441)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x450)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
+#define MMC_VERSION_5_1		(MMC_VERSION_MMC | 0x510)
 
 #define MMC_CAP_SPI			(1 << 0)
 #define MMC_CAP_4_BIT_DATA		(1 << 1)
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-05-18 12:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 12:01 [PATCH 1/4] mmc: Consistently use EXT_CSD_* names from eMMC 5.1 spec Sascha Hauer
2017-05-18 12:01 ` Sascha Hauer [this message]
2017-05-18 12:01 ` [PATCH 3/4] mmc_extcsd command: Fix multiline prints Sascha Hauer
2017-05-18 12:01 ` [PATCH 4/4] mmc_extcsd command: rework Sascha Hauer
2017-07-05 15:52 ` [PATCH 1/4] mmc: Consistently use EXT_CSD_* names from eMMC 5.1 spec Lucas Stach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170518120115.8040-2-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=ps.report@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox