summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJason Liu <jason.hui@linaro.org>2011-12-16 05:17:06 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-01-16 08:40:08 +0100
commitff167df51c261f615158a22ff9ef1b64b7237c5c (patch)
tree4c63965585cf2933b977c61e72de8969aecb29d1 /arch
parentf1f441afc41083e54775e6efe21b2c059e80b8f7 (diff)
downloadu-boot-imx-ff167df51c261f615158a22ff9ef1b64b7237c5c.zip
u-boot-imx-ff167df51c261f615158a22ff9ef1b64b7237c5c.tar.gz
u-boot-imx-ff167df51c261f615158a22ff9ef1b64b7237c5c.tar.bz2
i.mx: i.mx6q: Add the enet clock function
Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jason Liu <jason.hui@linaro.org> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/clock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index b143535..fa3a124 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) {