diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-08-21 11:07:20 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-09-06 11:05:17 +0200 |
commit | 9c6c5c06764b7762a016b0ede002511139166fee (patch) | |
tree | 4130652e91297f8be431140207393f186b8f182d /arch/arm/include | |
parent | 1b2080f3388b70c4c37b69830f73a61c50cdd505 (diff) | |
download | u-boot-imx-9c6c5c06764b7762a016b0ede002511139166fee.zip u-boot-imx-9c6c5c06764b7762a016b0ede002511139166fee.tar.gz u-boot-imx-9c6c5c06764b7762a016b0ede002511139166fee.tar.bz2 |
mx35: Define default SoC input clock frequencies
Define default SoC input clock frequencies for i.MX35 in order to get rid of
duplicated definitions.
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-mx35/clock.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx35/clock.h b/arch/arm/include/asm/arch-mx35/clock.h index e94f124..eb7458a 100644 --- a/arch/arm/include/asm/arch-mx35/clock.h +++ b/arch/arm/include/asm/arch-mx35/clock.h @@ -24,6 +24,20 @@ #ifndef __ASM_ARCH_CLOCK_H #define __ASM_ARCH_CLOCK_H +#include <common.h> + +#ifdef CONFIG_MX35_HCLK_FREQ +#define MXC_HCLK CONFIG_MX35_HCLK_FREQ +#else +#define MXC_HCLK 24000000 +#endif + +#ifdef CONFIG_MX35_CLK32 +#define MXC_CLK32 CONFIG_MX35_CLK32 +#else +#define MXC_CLK32 32768 +#endif + enum mxc_clock { MXC_ARM_CLK, MXC_AHB_CLK, |