From: Jason Liu Date: Fri, 16 Dec 2011 05:17:06 +0000 (+0000) Subject: i.mx: i.mx6q: Add the enet clock function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ff167df51c261f615158a22ff9ef1b64b7237c5c;p=u-boot.git i.mx: i.mx6q: Add the enet clock function Cc: Stefano Babic Signed-off-by: Jason Liu Acked-by: Stefano Babic --- diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index b143535972..fa3a124807 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -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) {