summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2014-12-23 10:50:22 +0100
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-01-19 17:02:29 +0200
commita7f852b6885dc7b89741b1e76921e160b9c9877b (patch)
tree4df36b554ec37f5eaf625265d739ef1296ba43d2 /include
parentf8e89d67166bbcd34a3144b8001b3819b58d02c9 (diff)
downloadu-boot-imx-a7f852b6885dc7b89741b1e76921e160b9c9877b.zip
u-boot-imx-a7f852b6885dc7b89741b1e76921e160b9c9877b.tar.gz
u-boot-imx-a7f852b6885dc7b89741b1e76921e160b9c9877b.tar.bz2
mmc: read the size of eMMC enhanced user data area
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 69c6070..18155c9 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -147,6 +147,8 @@
/*
* EXT_CSD fields
*/
+#define EXT_CSD_ENH_START_ADDR 136 /* R/W */
+#define EXT_CSD_ENH_SIZE_MULT 140 /* R/W */
#define EXT_CSD_GP_SIZE_MULT 143 /* R/W */
#define EXT_CSD_PARTITION_SETTING 155 /* R/W */
#define EXT_CSD_PARTITIONS_ATTRIBUTE 156 /* R/W */
@@ -319,6 +321,8 @@ struct mmc {
u64 capacity_boot;
u64 capacity_rpmb;
u64 capacity_gp[4];
+ u64 enh_user_start;
+ u64 enh_user_size;
block_dev_desc_t block_dev;
char op_cond_pending; /* 1 if we are waiting on an op_cond command */
char init_in_progress; /* 1 if we have done mmc_start_init() */