diff options
-rw-r--r-- | arch/arm/cpu/arm926ejs/mx25/generic.c | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-mx25/clock.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c index 0d1ae20..fc92c9b 100644 --- a/arch/arm/cpu/arm926ejs/mx25/generic.c +++ b/arch/arm/cpu/arm926ejs/mx25/generic.c @@ -129,9 +129,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk) return imx_get_ahbclk(); case MXC_IPG_CLK: case MXC_CSPI_CLK: - return imx_get_ipgclk(); case MXC_FEC_CLK: - return imx_get_ahbclk(); + return imx_get_ipgclk(); default: return imx_get_perclk(clk); } diff --git a/arch/arm/include/asm/arch-mx25/clock.h b/arch/arm/include/asm/arch-mx25/clock.h index 9823f46..a532da5 100644 --- a/arch/arm/include/asm/arch-mx25/clock.h +++ b/arch/arm/include/asm/arch-mx25/clock.h @@ -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); |