summaryrefslogtreecommitdiffstats
path: root/drivers/mci
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2016-05-24 19:28:02 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-31 08:23:45 +0200
commitfd5f9fc3ab78ea0d74d99791661ab87163b29126 (patch)
tree096e7f5be4cb6deaac93167706fde42d998d58a6 /drivers/mci
parent1b47607e89bb0364737cb5bc57d816138810edb5 (diff)
downloadbarebox-fd5f9fc3ab78ea0d74d99791661ab87163b29126.tar.gz
barebox-fd5f9fc3ab78ea0d74d99791661ab87163b29126.tar.xz
MCI: imx-esdhc: Allow to use 1-bit bus width in board files
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci')
-rw-r--r--drivers/mci/imx-esdhc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index 2e189fecad..66786ffec7 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -596,13 +596,10 @@ static int fsl_esdhc_probe(struct device_d *dev)
if (caps & ESDHC_HOSTCAPBLT_VS33)
mci->voltages |= MMC_VDD_32_33 | MMC_VDD_33_34;
- if (pdata && pdata->caps)
+ if (pdata) {
mci->host_caps = pdata->caps;
- else
- mci->host_caps = MMC_CAP_4_BIT_DATA;
-
- if (pdata && pdata->devname) {
- mci->devname = pdata->devname;
+ if (pdata->devname)
+ mci->devname = pdata->devname;
} else if (dev->device_node) {
const char *alias = of_alias_get(dev->device_node);
if (alias)