summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2011-10-01 14:18:47 +0100
committerAndy Green <andy.green@linaro.org>2011-10-02 09:38:35 +0100
commit01fd73f7b50bba84a14ecd5843891b2130336ef8 (patch)
tree47141a7e842128c89f1fe4f193c28b426f80740f /include
parentb10508c7e4a7f7201bb9e8756fffe8fd4bbfbdf2 (diff)
mmc: subtract boot sectors from disk size for eMMC 4.3+ devices
the csd sector count reported by eMMC 4.3+ cards includes the boot partition size; subtract this from the size reported to the disk since the boot partition is inaccessible Change-Id: I601b83aa0159b7aa446409ea8c945b256dd0b5b1 Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmc/mmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h
index 5a794cb503e..9e082f76b81 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/mmc.h
@@ -293,6 +293,7 @@ struct _mmc_csd {
#define EXT_CSD_SEC_ERASE_MULT 230 /* RO */
#define EXT_CSD_SEC_FEATURE_SUPPORT 231 /* RO */
#define EXT_CSD_TRIM_MULT 232 /* RO */
+#define EXT_CSD_BOOT_SIZE_MULTI 226 /* RO */
/*
* EXT_CSD field definitions