summaryrefslogtreecommitdiffstats
path: root/drivers/mci/imx-esdhc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-11-29 16:52:05 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-17 08:42:32 +0100
commitde3c258d41bc1102b25b1786085fd5310eaf1057 (patch)
tree03e6f10c313a6a9e21e0cc434dfdc67357e00b28 /drivers/mci/imx-esdhc.c
parent30eb68037835061a4003a7a279b15a1e78c6d4ac (diff)
downloadbarebox-de3c258d41bc1102b25b1786085fd5310eaf1057.tar.gz
barebox-de3c258d41bc1102b25b1786085fd5310eaf1057.tar.xz
mci i.MX esdhc: Allow to specify devicename from platformdata
For boards which need to have persistent names for the device file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/imx-esdhc.c')
-rw-r--r--drivers/mci/imx-esdhc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index e8075a9d9..dfeb509db 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -552,6 +552,9 @@ static int fsl_esdhc_probe(struct device_d *dev)
else
mci->host_caps = MMC_MODE_4BIT;
+ if (pdata && pdata->devname)
+ mci->devname = pdata->devname;
+
if (caps & ESDHC_HOSTCAPBLT_HSS)
mci->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;