summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2010-10-11 16:52:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-21 22:16:10 +0200
commitfe366aa8ec3854dd99483b8234c00ec0d7e4b1ef (patch)
tree67e032a5b25c0a8d85866bfdff61f1e58bbc10e5 /drivers
parentf0dd45bb9f965b193a94786880325e9e51d0b0dd (diff)
downloadbarebox-fe366aa8ec3854dd99483b8234c00ec0d7e4b1ef.tar.gz
barebox-fe366aa8ec3854dd99483b8234c00ec0d7e4b1ef.tar.xz
Adapt the i.MX23 MCI driver to the v2 i.MX23 patch series
The i.MX23 v2 architecture patch series was sligthly modified to easify the i.MX28 architecture addition later on. So, we need now an index to query the SSP clock frequency. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/stm378x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mci/stm378x.c b/drivers/mci/stm378x.c
index 13e8006855..420c2ea92b 100644
--- a/drivers/mci/stm378x.c
+++ b/drivers/mci/stm378x.c
@@ -481,7 +481,7 @@ static unsigned setup_clock_speed(struct device_d *hw_dev, unsigned nc)
return 0;
}
- ssp = imx_get_sspclk() * 1000;
+ ssp = imx_get_sspclk(0) * 1000;
for (div = 2; div < 255; div += 2) {
rate = (((ssp + (nc >> 1) ) / nc) + (div >> 1)) / div;
@@ -658,20 +658,20 @@ static int stm_mci_probe(struct device_d *hw_dev)
host->host_caps = pd->caps;
if (pd->f_min == 0) {
- host->f_min = imx_get_sspclk() / 254U / 256U * 1000U;
+ host->f_min = imx_get_sspclk(0) / 254U / 256U * 1000U;
pr_debug("Min. frequency is %u Hz\n", host->f_min);
} else {
host->f_min = pd->f_min;
pr_debug("Min. frequency is %u Hz, could be %u Hz\n",
- host->f_min, imx_get_sspclk() / 254U / 256U * 1000U);
+ host->f_min, imx_get_sspclk(0) / 254U / 256U * 1000U);
}
if (pd->f_max == 0) {
- host->f_max = imx_get_sspclk() / 2U / 1U * 1000U;
+ host->f_max = imx_get_sspclk(0) / 2U / 1U * 1000U;
pr_debug("Max. frequency is %u Hz\n", host->f_max);
} else {
host->f_max = pd->f_max;
pr_debug("Max. frequency is %u Hz, could be %u Hz\n",
- host->f_max, imx_get_sspclk() / 2U / 1U * 1000U);
+ host->f_max, imx_get_sspclk(0) / 2U / 1U * 1000U);
}
#ifdef CONFIG_MCI_INFO