diff options
author | Ben Gardiner <bengardiner@nanometrics.ca> | 2013-05-30 17:12:46 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-27 11:11:05 -0400 |
commit | a6cd98de8b158029ca6b9c1e961729dc83a7144c (patch) | |
tree | a6541aef88ed9c9e7ae8ab307b1d3f79a7e07a82 | |
parent | 82bd9504b12160992309d6508dc5654b3db93c2b (diff) | |
download | mmc-utils-a6cd98de8b158029ca6b9c1e961729dc83a7144c.tar.gz |
extract definitions for PARTITION_SETTING_COMPLETED and pretty-print
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | mmc.h | 1 | ||||
-rw-r--r-- | mmc_cmds.c | 8 |
2 files changed, 8 insertions, 1 deletions
@@ -44,6 +44,7 @@ #define EXT_CSD_BKOPS_EN 163 /* R/W */ #define EXT_CSD_RST_N_FUNCTION 162 /* R/W */ #define EXT_CSD_PARTITIONING_SUPPORT 160 /* RO */ +#define EXT_CSD_PARTITION_SETTING_COMPLETED 155 /* R/W */ #define EXT_CSD_NATIVE_SECTOR_SIZE 63 /* R */ #define EXT_CSD_USE_NATIVE_SECTOR 62 /* R/W */ #define EXT_CSD_DATA_SECTOR_SIZE 61 /* R */ @@ -677,9 +677,15 @@ int do_read_extcsd(int nargs, char **argv) ext_csd[157]); printf("Partitions attribute [PARTITIONS_ATTRIBUTE]: 0x%02x\n", ext_csd[156]); + reg = ext_csd[EXT_CSD_PARTITION_SETTING_COMPLETED]; printf("Partitioning Setting" " [PARTITION_SETTING_COMPLETED]: 0x%02x\n", - ext_csd[155]); + reg); + if (reg) + printf(" Device partition setting complete\n"); + else + printf(" Device partition setting NOT complete\n"); + printf("General Purpose Partition Size\n" " [GP_SIZE_MULT_4]: 0x%06x\n", (ext_csd[154] << 16) | (ext_csd[153] << 8) | ext_csd[152]); |