summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tqs.de>2014-02-05 10:51:25 +0100
committerStefano Babic <sbabic@denx.de>2014-02-11 11:31:52 +0100
commitadadc915b31c4d55561c2703849f92cddfa8ad24 (patch)
treee9d24c0ecbb20a60903e9075ab360ab0344bebf8 /arch
parentbb01956344da904463870104d3a66ecfffea7c7a (diff)
downloadu-boot-imx-adadc915b31c4d55561c2703849f92cddfa8ad24.zip
u-boot-imx-adadc915b31c4d55561c2703849f92cddfa8ad24.tar.gz
u-boot-imx-adadc915b31c4d55561c2703849f92cddfa8ad24.tar.bz2
ARM: imx6: fix wrong fec clk
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 61f71cf..bd65a08 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -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)