diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-07-29 15:59:09 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-29 14:30:59 +0200 |
commit | 366f64ff1b13654c26329fdc93efde2e20834cee (patch) | |
tree | 16024f639f9ef65cb51c40bc085734534b401251 /drivers/mci/mci-core.c | |
parent | ada160a34a1ec8421d5bb7b9dd746294668a5130 (diff) | |
download | barebox-366f64ff1b13654c26329fdc93efde2e20834cee.tar.gz barebox-366f64ff1b13654c26329fdc93efde2e20834cee.tar.xz |
mci: core: the sd1.0 card can work in 4 bits mode
The sd 1.0 card can work in 4 bits mode also.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/mci-core.c')
-rw-r--r-- | drivers/mci/mci-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index ce6e590aaf..8221632ecb 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -616,6 +616,9 @@ retry_scr: break; } + if (mci->scr[0] & SD_DATA_4BIT) + mci->card_caps |= MMC_CAP_4_BIT_DATA; + /* Version 1.0 doesn't support switching */ if (mci->version == SD_VERSION_1_0) return 0; @@ -634,9 +637,6 @@ retry_scr: break; } - if (mci->scr[0] & SD_DATA_4BIT) - mci->card_caps |= MMC_CAP_4_BIT_DATA; - /* If high-speed isn't supported, we return */ if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED)) return 0; |