mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
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>
This commit is contained in:
committed by
Pantelis Antoniou
parent
509dca7a11
commit
1937e5aa3b
@@ -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
|
||||
|
Reference in New Issue
Block a user