summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tq-group.com>2014-11-18 15:11:42 +0100
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2014-12-12 20:28:04 +0200
commitd7b2912991bb18db26b6c6b51cdc637142e21d3e (patch)
tree59d7c0dfd3fda275beed537fee4014ef02fc532d /include/mmc.h
parente75eaf100bdf01b94757e2b40365b46a7d380275 (diff)
downloadu-boot-imx-d7b2912991bb18db26b6c6b51cdc637142e21d3e.zip
u-boot-imx-d7b2912991bb18db26b6c6b51cdc637142e21d3e.tar.gz
u-boot-imx-d7b2912991bb18db26b6c6b51cdc637142e21d3e.tar.bz2
MMC: fix user capacity for partitioned eMMC card
if the card claims to be high capacity and the card is partitioned the capacity shall still be read from ext_csd SEC_COUNT even if the resulting capacity is smaller than 2 GiB Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index adffc35..9b26924 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -147,6 +147,7 @@
* EXT_CSD fields
*/
#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 */
#define EXT_CSD_PARTITIONING_SUPPORT 160 /* RO */
#define EXT_CSD_RST_N_FUNCTION 162 /* R/W */
@@ -197,6 +198,8 @@
#define EXT_CSD_BOOT_BUS_WIDTH_RESET(x) (x << 2)
#define EXT_CSD_BOOT_BUS_WIDTH_WIDTH(x) (x)
+#define EXT_CSD_PARTITION_SETTING_COMPLETED (1 << 0)
+
#define R1_ILLEGAL_COMMAND (1 << 22)
#define R1_APP_CMD (1 << 5)