diff options
author | Terry Lv <r65388@freescale.com> | 2010-09-21 15:24:04 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2010-09-21 15:24:44 +0800 |
commit | 359ec824c60dffdca80f42ca626fb5baf67ad20e (patch) | |
tree | 18d524ff8f1458cbbd33f4af67962c17789ecb84 /cpu/arm1136/mx31/generic.c | |
parent | f7af4ae4bbe25f6e53fcc779458ab31c6c412596 (diff) | |
download | u-boot-imx-359ec824c60dffdca80f42ca626fb5baf67ad20e.zip u-boot-imx-359ec824c60dffdca80f42ca626fb5baf67ad20e.tar.gz u-boot-imx-359ec824c60dffdca80f42ca626fb5baf67ad20e.tar.bz2 |
ENGR00131779: Use serial_mxc as uart driver for all platforms
Use serial_mxc as uart driver for all platforms.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'cpu/arm1136/mx31/generic.c')
-rw-r--r-- | cpu/arm1136/mx31/generic.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpu/arm1136/mx31/generic.c b/cpu/arm1136/mx31/generic.c index 67c0cc6..c9bbc9c 100644 --- a/cpu/arm1136/mx31/generic.c +++ b/cpu/arm1136/mx31/generic.c @@ -22,6 +22,7 @@ */ #include <common.h> +#include <asm/arch/mx31.h> #include <asm/arch/mx31-regs.h> static u32 mx31_decode_pll(u32 reg, u32 infreq) @@ -77,6 +78,20 @@ void mx31_dump_clocks(void) printf("ipg clock : %dHz\n", mx31_get_ipg_clk()); } +int mxc_get_clock(enum mxc_clock clk) +{ + switch (clk) { + case MXC_ARM_CLK: + return mx31_get_mcu_main_clk(); + case MXC_UART_CLK: + return mx31_get_ipg_clk(); + default: + break; + } + + return -1; +} + void mx31_gpio_mux(unsigned long mode) { unsigned long reg, shift, tmp; |