summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_imx.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-07 17:07:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-01-13 14:30:56 +0100
commit1a3c1d3de1b5d92ed430b01855fe30d01f092e83 (patch)
treef536e07663e3c87725d366e89684ec0c1e741b24 /drivers/serial/serial_imx.c
parentf96f2d8e01a7c859622cac0883b104e431d6ab06 (diff)
downloadbarebox-1a3c1d3de1b5d92ed430b01855fe30d01f092e83.tar.gz
i.MX: introduce imx_get_uartclk function
We need this function for MX35 support since the uart clock is not equal to perclk1 anymore. Uh, it's really time to implement some real clock API instead of this cruft. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/serial_imx.c')
-rw-r--r--drivers/serial/serial_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 14f3059..edb9fba 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -176,7 +176,7 @@ static int imx_serial_reffreq(ulong base)
rfdiv = (UFCR(base) >> 7) & 7;
rfdiv = rfdiv < 6 ? 6 - rfdiv : 7;
- return imx_get_perclk1() / rfdiv;
+ return imx_get_uartclk() / rfdiv;
}
/*