summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tqs.de>2014-01-14 09:23:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-15 15:22:56 +0100
commitfa5bdb30ee38f815a979182bc6efa5e0791dadc6 (patch)
tree4bcbcb0a05987a16c5bd39645ef14288359714b1 /drivers
parentf11668fee725f59ab13e40f58f46ab7e65205457 (diff)
downloadbarebox-fa5bdb30ee38f815a979182bc6efa5e0791dadc6.tar.gz
barebox-fa5bdb30ee38f815a979182bc6efa5e0791dadc6.tar.xz
mci: imx-esdhc: add DSR support
having DSR support in mci-core we need a way to forward the DSR value to the driver. Add it to platform data for imx-esdhc TODO: implement the same for other host controller drivers Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/imx-esdhc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index 7664e7be4c..4c7a45e722 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -582,6 +582,10 @@ static int fsl_esdhc_probe(struct device_d *dev)
if (host->mci.f_min < 200000)
host->mci.f_min = 200000;
host->mci.f_max = rate;
+ if (pdata) {
+ host->mci.use_dsr = pdata->use_dsr;
+ host->mci.dsr_val = pdata->dsr_val;
+ }
mci_of_parse(&host->mci);