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@xxxxxxxxxxxxxx> --- drivers/mci/stm378x.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mci/stm378x.c b/drivers/mci/stm378x.c index fbb9994..8865ee8 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 (div1 = 2; div1 < 255; div1 += 2) { div2 = ssp / nc / div1; @@ -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 -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox