mx25 clocks: Fix MXC_FEC_CLK
mxc_get_clock(MXC_FEC_CLK) should return the IPG clock, not the AHB clock. Also, imx_get_fecclk() was correct but reimplemented the calculation of the IPG clock, so remove the duplicated code. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:

committed by
Tom Rini

parent
c3b5189031
commit
17c7cf71b4
@@ -71,7 +71,7 @@ ulong imx_get_perclk(int clk);
|
||||
ulong imx_get_ahbclk(void);
|
||||
|
||||
#define imx_get_uartclk() imx_get_perclk(15)
|
||||
#define imx_get_fecclk() (imx_get_ahbclk()/2)
|
||||
#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
|
||||
|
||||
unsigned int mxc_get_clock(enum mxc_clock clk);
|
||||
|
||||
|
Reference in New Issue
Block a user