diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-04 11:49:32 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-04 11:49:32 +0200 |
commit | be08abc2429c2e9cbce3d0abc1d315171d683520 (patch) | |
tree | 9c3f8c892cf8918c9a5b4cd0b9b29558b0aff0e7 /drivers/mmc | |
parent | 5eaa215607c8668bfa6a7183407eba8fec63d648 (diff) | |
parent | d36b39bf0d1dbe4ef03f7fc1f20b2e52eb90acf5 (diff) | |
download | u-boot-imx-be08abc2429c2e9cbce3d0abc1d315171d683520.zip u-boot-imx-be08abc2429c2e9cbce3d0abc1d315171d683520.tar.gz u-boot-imx-be08abc2429c2e9cbce3d0abc1d315171d683520.tar.bz2 |
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 54b5363..35f879e 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -580,6 +580,13 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg) mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT | MMC_MODE_HC; + if (cfg->max_bus_width > 0) { + if (cfg->max_bus_width < 8) + mmc->host_caps &= ~MMC_MODE_8BIT; + if (cfg->max_bus_width < 4) + mmc->host_caps &= ~MMC_MODE_4BIT; + } + if (caps & ESDHC_HOSTCAPBLT_HSS) mmc->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS; |