aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2017-03-20 14:43:00 +0100
committerChris Ball <chris@printf.net>2017-03-20 09:58:40 -0400
commitc22a92f948983d414806e0005cf6e24cda2fffbf (patch)
tree2516fbed475b3a5ba0e0aa7037de86dcba0248f2
parent34a954b87c5a90774aa969590be79f7fb913db6c (diff)
downloadmmc-utils-c22a92f948983d414806e0005cf6e24cda2fffbf.tar.gz
mmc-utils: feature spec 5.0+, Pre EOL information
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--mmc.h1
-rw-r--r--mmc_cmds.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/mmc.h b/mmc.h
index f3fa03f..fa49df6 100644
--- a/mmc.h
+++ b/mmc.h
@@ -63,6 +63,7 @@
#define EXT_CSD_NUM_OF_FW_SEC_PROG_0 302 /* RO */
#define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B 269 /* RO */
#define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A 268 /* RO */
+#define EXT_CSD_PRE_EOL_INFO 267 /* RO */
#define EXT_CSD_FIRMWARE_VERSION 254 /* RO */
#define EXT_CSD_CACHE_SIZE_3 252
#define EXT_CSD_CACHE_SIZE_2 251
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 0e4322e..728ad77 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1748,6 +1748,11 @@ int do_read_extcsd(int nargs, char **argv)
ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]);
}
+ if (ext_csd_rev >= 7) {
+ printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n",
+ ext_csd[EXT_CSD_PRE_EOL_INFO]);
+ }
+
if (ext_csd_rev >= 8) {
printf("Command Queue Support [CMDQ_SUPPORT]: 0x%02x\n",
ext_csd[EXT_CSD_CMDQ_SUPPORT]);