diff options
author | Oliver Metz <oliver@freetz.org> | 2013-10-01 20:32:07 +0200 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2013-10-31 09:55:33 +0200 |
commit | 1937e5aa3b0ec0767a36580db654ef8918c09b84 (patch) | |
tree | ccf28bdc72fb7cf3cb197d4d8d3f4605bd22fc96 /include/mmc.h | |
parent | 509dca7a11aad394d781a9d31a7bfa6692562741 (diff) | |
download | u-boot-imx-1937e5aa3b0ec0767a36580db654ef8918c09b84.zip u-boot-imx-1937e5aa3b0ec0767a36580db654ef8918c09b84.tar.gz u-boot-imx-1937e5aa3b0ec0767a36580db654ef8918c09b84.tar.bz2 |
mmc: Fix erase_grp_size for partitioned card
EXT_CSD_ERASE_GROUP_DEF is lost every time after a reset or
power off. Set it if device has enhanced partitions.
Signed-off-by: Oliver Metz <oliver@freetz.org>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 214b9ed..cb558da 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -148,6 +148,7 @@ * EXT_CSD fields */ #define EXT_CSD_GP_SIZE_MULT 143 /* R/W */ +#define EXT_CSD_PARTITIONS_ATTRIBUTE 156 /* R/W */ #define EXT_CSD_PARTITIONING_SUPPORT 160 /* RO */ #define EXT_CSD_RPMB_MULT 168 /* RO */ #define EXT_CSD_ERASE_GROUP_DEF 175 /* R/W */ @@ -210,6 +211,7 @@ #define MMCPART_NOAVAILABLE (0xff) #define PART_ACCESS_MASK (0x7) #define PART_SUPPORT (0x1) +#define PART_ENH_ATTRIB (0x1f) /* Maximum block size for MMC */ #define MMC_MAX_BLOCK_LEN 512 |