i.mx: i.mx6q: Add the enet clock function
authorJason Liu <jason.hui@linaro.org>
Fri, 16 Dec 2011 05:17:06 +0000 (05:17 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Jan 2012 07:40:08 +0000 (08:40 +0100)
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Jason Liu <jason.hui@linaro.org>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx6/clock.c

index b143535972e82d254a38a0337aa3e971452657ff..fa3a124807954ba467133f0fed48d2dcb36142c8 100644 (file)
@@ -285,6 +285,11 @@ u32 imx_get_uartclk(void)
        return get_uart_clk();
 }
 
+u32 imx_get_fecclk(void)
+{
+       return decode_pll(PLL_ENET, CONFIG_SYS_MX6_HCLK);
+}
+
 unsigned int mxc_get_clock(enum mxc_clock clk)
 {
        switch (clk) {