diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2011-09-23 05:48:21 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-10-26 16:32:15 -0400 |
commit | f7c56ef2af5ae7e4c24c3c79427b38d18ba1d294 (patch) | |
tree | 5590da07839d9a07b7811a8fe0104aaa596e03dc /include/linux/mmc | |
parent | 0d7d85ca6e5dc7bd426d1d5989a44e93e8c7a0d3 (diff) |
mmc: block: support no access to boot partitions
Intel Medfield platform blocks access to eMMC boot partitions which
results in switch errors. Since there is no access, mmcboot0/1
devices should not be created. Add a host capability to reflect that.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/host.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index b2aefea97048..aed5bc7245f7 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -236,6 +236,10 @@ struct mmc_host { | |||
236 | #define MMC_CAP_CMD23 (1 << 30) /* CMD23 supported. */ | 236 | #define MMC_CAP_CMD23 (1 << 30) /* CMD23 supported. */ |
237 | #define MMC_CAP_HW_RESET (1 << 31) /* Hardware reset */ | 237 | #define MMC_CAP_HW_RESET (1 << 31) /* Hardware reset */ |
238 | 238 | ||
239 | unsigned int caps2; /* More host capabilities */ | ||
240 | |||
241 | #define MMC_CAP2_BOOTPART_NOACC (1 << 0) /* Boot partition no access */ | ||
242 | |||
239 | mmc_pm_flag_t pm_caps; /* supported pm features */ | 243 | mmc_pm_flag_t pm_caps; /* supported pm features */ |
240 | 244 | ||
241 | #ifdef CONFIG_MMC_CLKGATE | 245 | #ifdef CONFIG_MMC_CLKGATE |
@@ -404,4 +408,10 @@ static inline int mmc_host_cmd23(struct mmc_host *host) | |||
404 | { | 408 | { |
405 | return host->caps & MMC_CAP_CMD23; | 409 | return host->caps & MMC_CAP_CMD23; |
406 | } | 410 | } |
411 | |||
412 | static inline int mmc_boot_partition_access(struct mmc_host *host) | ||
413 | { | ||
414 | return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); | ||
415 | } | ||
416 | |||
407 | #endif /* LINUX_MMC_HOST_H */ | 417 | #endif /* LINUX_MMC_HOST_H */ |