summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-07-13 14:34:52 +0200
committerStefano Babic <sbabic@denx.de>2011-07-18 14:41:48 +0200
commit9f008bb47dd696d9e539fea2f045ae01b0c78a25 (patch)
tree19d9a7ba407f946a1d8332e28be64fe2be356e7b /arch/arm/include
parent386393c680f6a48bb3628809983dd1f403ddaa5d (diff)
downloadu-boot-imx-9f008bb47dd696d9e539fea2f045ae01b0c78a25.zip
u-boot-imx-9f008bb47dd696d9e539fea2f045ae01b0c78a25.tar.gz
u-boot-imx-9f008bb47dd696d9e539fea2f045ae01b0c78a25.tar.bz2
MX31: Cleanup clock function
The patch provide the same API used with other i.MX processors and get rid of mx31_ functions. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-mx31/clock.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-mx31/clock.h b/arch/arm/include/asm/arch-mx31/clock.h
index 9f7ae80..fb035c4 100644
--- a/arch/arm/include/asm/arch-mx31/clock.h
+++ b/arch/arm/include/asm/arch-mx31/clock.h
@@ -24,8 +24,15 @@
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
-extern u32 mx31_get_ipg_clk(void);
-#define imx_get_uartclk mx31_get_ipg_clk
+enum mxc_clock {
+ MXC_ARM_CLK,
+ MXC_IPG_CLK,
+ MXC_CSPI_CLK,
+ MXC_UART_CLK,
+};
+
+unsigned int mxc_get_clock(enum mxc_clock clk);
+extern u32 imx_get_uartclk();
extern void mx31_gpio_mux(unsigned long mode);
extern void mx31_set_pad(enum iomux_pins pin, u32 config);