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>
This commit is contained in:
Alexander Stein 2017-03-20 14:43:00 +01:00 committed by Chris Ball
parent 34a954b87c
commit c22a92f948
2 changed files with 6 additions and 0 deletions

1
mmc.h
View File

@ -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

View File

@ -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]);