]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx6: fix wrong fec clk
authorMarkus Niebel <Markus.Niebel@tqs.de>
Wed, 5 Feb 2014 09:51:25 +0000 (10:51 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Feb 2014 10:31:52 +0000 (11:31 +0100)
imx_get_fecclk() returns enet_ref instead of ipg.
Since the clock is used to calculate the prescaler
for the MDIO interface wrong values can be calculated.

Tested on a custom MX6S board with 100MBit interface

Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de>
arch/arm/cpu/armv7/mx6/clock.c

index 61f71cfa85e280c6a3f013939aa33daab790ae40..bd65a08ba236f8afb0695c71e0d9c43defee14de 100644 (file)
@@ -409,7 +409,7 @@ u32 imx_get_uartclk(void)
 
 u32 imx_get_fecclk(void)
 {
-       return decode_pll(PLL_ENET, MXC_HCLK);
+       return mxc_get_clock(MXC_IPG_CLK);
 }
 
 static int enable_enet_pll(uint32_t en)