From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/4] Adapt the i.MX23 MCI driver to the v2 i.MX23 patch series
Date: Mon, 11 Oct 2010 16:52:24 +0200 [thread overview]
Message-ID: <1286808746-19456-3-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1286808746-19456-1-git-send-email-jbe@pengutronix.de>
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>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2010-10-11 14:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-11 14:52 Bring together i.MX23, its MCI driver and the ChumbyOne Juergen Beisert
2010-10-11 14:52 ` [PATCH 1/4] Glue i.MX23 and MCI support Juergen Beisert
2010-10-11 14:52 ` Juergen Beisert [this message]
2010-10-11 14:52 ` [PATCH 3/4] Spend the ChumbyOne a persistant environment memory on MCI card Juergen Beisert
2010-10-11 14:52 ` [PATCH 4/4] Adapt the defconfig for a full blown ChumbyOne support Juergen Beisert
2010-10-11 15:20 ` Jean-Christophe PLAGNIOL-VILLARD
2010-10-11 15:42 ` Juergen Beisert
2010-10-11 17:05 ` Sascha Hauer
2010-10-11 15:47 ` Juergen Beisert
2010-10-21 12:06 ` Bring together i.MX23, its MCI driver and the ChumbyOne Juergen Beisert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1286808746-19456-3-git-send-email-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox