diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-07-30 10:55:43 +0000 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2012-09-07 13:54:31 -0700 |
commit | 29159057a168fce0fb473b7771bb4f0940527213 (patch) | |
tree | 6d4c53b1557da1fe10709f9681c346ef933656ee /drivers/mmc | |
parent | 0bc069b2e46ec673daf1c17ee86099fef7252660 (diff) | |
download | u-boot-imx-29159057a168fce0fb473b7771bb4f0940527213.zip u-boot-imx-29159057a168fce0fb473b7771bb4f0940527213.tar.gz u-boot-imx-29159057a168fce0fb473b7771bb4f0940527213.tar.bz2 |
mmc: detect boot sectors using EXT_CSD_BOOT_MULT too
Some eMMC devices contain boot partitions, but do not set the PART_SUPPORT
bit in EXT_CSD_PARTITIONING_SUPPORT. Allow partition selection on such
devices, by enabling partition switching when EXT_CSD_BOOT_MULT is set.
Note that the Linux kernel enables access to boot partitions solely based
on the value of EXT_CSD_BOOT_MULT; EXT_CSD_PARTITIONING_SUPPORT only
influences access to "general" partitions.
eMMC devices affected by this issue exist on various NVIDIA Tegra
platforms (and presumably many others too), such as Harmony (plug-in eMMC),
Seaboard, Springbank, and Whistler (plug-in eMMC).
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index c1c2862..551d6a9 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1162,7 +1162,8 @@ int mmc_startup(struct mmc *mmc) } /* store the partition info of emmc */ - if (ext_csd[EXT_CSD_PARTITIONING_SUPPORT] & PART_SUPPORT) + if ((ext_csd[EXT_CSD_PARTITIONING_SUPPORT] & PART_SUPPORT) || + ext_csd[EXT_CSD_BOOT_MULT]) mmc->part_config = ext_csd[EXT_CSD_PART_CONF]; } |