diff options
author | Stefano Babic <sbabic@denx.de> | 2010-03-05 17:54:37 +0100 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2010-03-07 12:36:36 -0600 |
commit | e4d34492017c95e4041ea0c581e1ab8d1d49381b (patch) | |
tree | 3badc8c1ab6433507c7c9d6993ad7aaacb47bf4f /include/asm-arm/arch-mx51/clock.h | |
parent | 9d69e33d8d0f112fe3a089101d023e87431684d1 (diff) | |
download | u-boot-imx-e4d34492017c95e4041ea0c581e1ab8d1d49381b.zip u-boot-imx-e4d34492017c95e4041ea0c581e1ab8d1d49381b.tar.gz u-boot-imx-e4d34492017c95e4041ea0c581e1ab8d1d49381b.tar.bz2 |
MX51: removed warnings for the mx51evk
The patch removes warnings at compile time and provides
some cleanup code:
- Removed comment on NAND (not yet supported) from lowlevel_init.S
- Removed NFMS bit definition from imx-regs.h
The bit is only related to MX.25/35 and can lead to confusion
- Moved is_soc_rev() to soc specific code (removed from mx51evk.c)
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/asm-arm/arch-mx51/clock.h')
-rw-r--r-- | include/asm-arm/arch-mx51/clock.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/asm-arm/arch-mx51/clock.h b/include/asm-arm/arch-mx51/clock.h index 449a191..1f8a537 100644 --- a/include/asm-arm/arch-mx51/clock.h +++ b/include/asm-arm/arch-mx51/clock.h @@ -23,9 +23,21 @@ #ifndef __ASM_ARCH_CLOCK_H #define __ASM_ARCH_CLOCK_H + +enum mxc_clock { + MXC_ARM_CLK = 0, + MXC_AHB_CLK, + MXC_IPG_CLK, + MXC_IPG_PERCLK, + MXC_UART_CLK, + MXC_CSPI_CLK, + MXC_FEC_CLK, +}; + unsigned int imx_decode_pll(unsigned int pll, unsigned int f_ref); -ulong imx_get_uartclk(void); -ulong imx_get_fecclk(void); +u32 imx_get_uartclk(void); +u32 imx_get_fecclk(void); +unsigned int mxc_get_clock(enum mxc_clock clk); #endif /* __ASM_ARCH_CLOCK_H */ |