summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2012-12-05 12:28:45 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-07 13:58:24 +0100
commit377964b946ca039e6231a2a8254c21bc768eaff8 (patch)
tree27803eafb29d4ae3b62af99de9eed3e3036222c3 /arch/arm/mach-mxs
parent1cab895549c9ebb4844b3807f79bd5a11dc65d07 (diff)
downloadbarebox-377964b946ca039e6231a2a8254c21bc768eaff8.tar.gz
barebox-377964b946ca039e6231a2a8254c21bc768eaff8.tar.xz
mxs: get_fecclk is hclk, not a constant
The fec has multiple clock inputs: - 50MHz clock for generating the (R)MII clock - bus clock The MDIO clock is derived from the bus clock, not the 50MHz clock, so pass this into the driver so that it can correctly configure the MDIO clock divider. This fixes several wrong MDIO register read problems on i.MX28 boards. Reported-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r--arch/arm/mach-mxs/speed-imx28.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-mxs/speed-imx28.c b/arch/arm/mach-mxs/speed-imx28.c
index df55f64c24..2cab42d8f5 100644
--- a/arch/arm/mach-mxs/speed-imx28.c
+++ b/arch/arm/mach-mxs/speed-imx28.c
@@ -121,8 +121,7 @@ unsigned imx_get_xtalclk(void)
unsigned imx_get_fecclk(void)
{
- /* this PLL always runs at 50 MHz */
- return 50000000;
+ return imx_get_hclk();
}