Commit 22f2641f authored by Oliver Metz's avatar Oliver Metz Committed by Chris Ball
Browse files

Add defines for ext_csd field MAX_ENH_SIZE_MULT


Signed-off-by: default avatarOliver Metz <oliver@freetz.org>
Reviewed-by: default avatarBen Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 196d0d29
......@@ -52,6 +52,9 @@
#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_MAX_ENH_SIZE_MULT_2 159
#define EXT_CSD_MAX_ENH_SIZE_MULT_1 158
#define EXT_CSD_MAX_ENH_SIZE_MULT_0 157
#define EXT_CSD_PARTITIONS_ATTRIBUTE 156 /* R/W */
#define EXT_CSD_PARTITION_SETTING_COMPLETED 155 /* R/W */
#define EXT_CSD_ENH_SIZE_MULT_2 142
......
......@@ -1024,8 +1024,10 @@ int do_read_extcsd(int nargs, char **argv)
else
printf(" Device cannot have enhanced tech.\n");
reg = (ext_csd[159] << 16) | (ext_csd[158] << 8) |
ext_csd[157];
reg = (ext_csd[EXT_CSD_MAX_ENH_SIZE_MULT_2] << 16) |
(ext_csd[EXT_CSD_MAX_ENH_SIZE_MULT_1] << 8) |
ext_csd[EXT_CSD_MAX_ENH_SIZE_MULT_0];
printf("Max Enhanced Area Size [MAX_ENH_SIZE_MULT]: 0x%06x\n",
reg);
unsigned int wp_sz = get_hc_wp_grp_size(ext_csd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment