* [U-Boot] [PATCH] ARM: imx6: fix wrong fec clk
@ 2014-02-05 9:51 Markus Niebel
2014-02-11 10:32 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: Markus Niebel @ 2014-02-05 9:51 UTC (permalink / raw)
To: u-boot
From: Markus Niebel <Markus.Niebel@tqs.de>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 5617a41..5cc25d1 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);
}
int enable_sata_clock(void)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] ARM: imx6: fix wrong fec clk
2014-02-05 9:51 [U-Boot] [PATCH] ARM: imx6: fix wrong fec clk Markus Niebel
@ 2014-02-11 10:32 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2014-02-11 10:32 UTC (permalink / raw)
To: u-boot
On 05/02/2014 10:51, Markus Niebel wrote:
> From: Markus Niebel <Markus.Niebel@tqs.de>
>
> 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 | 2 +-
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-11 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 9:51 [U-Boot] [PATCH] ARM: imx6: fix wrong fec clk Markus Niebel
2014-02-11 10:32 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox