diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-08-21 11:06:03 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-09-06 14:23:30 +0200 |
commit | 0dc7b82e4ec7cb95738aebd368d06a5cd8e37595 (patch) | |
tree | 216c89ad4a1d89ce4b78203a1d00b7f822a8a1d6 /arch/arm/include | |
parent | 97ed12cedf9cd47ddc4553c3fa9f3e8f92cba8c3 (diff) | |
download | u-boot-imx-0dc7b82e4ec7cb95738aebd368d06a5cd8e37595.zip u-boot-imx-0dc7b82e4ec7cb95738aebd368d06a5cd8e37595.tar.gz u-boot-imx-0dc7b82e4ec7cb95738aebd368d06a5cd8e37595.tar.bz2 |
mx31: Define default SoC input clock frequencies
Define default SoC input clock frequencies for i.MX31 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>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Helmut Raiger <helmut.raiger@hale.at>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-mx31/clock.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx31/clock.h b/arch/arm/include/asm/arch-mx31/clock.h index 852c19c..9468b45 100644 --- a/arch/arm/include/asm/arch-mx31/clock.h +++ b/arch/arm/include/asm/arch-mx31/clock.h @@ -24,6 +24,20 @@ #ifndef __ASM_ARCH_CLOCK_H #define __ASM_ARCH_CLOCK_H +#include <common.h> + +#ifdef CONFIG_MX31_HCLK_FREQ +#define MXC_HCLK CONFIG_MX31_HCLK_FREQ +#else +#define MXC_HCLK 26000000 +#endif + +#ifdef CONFIG_MX31_CLK32 +#define MXC_CLK32 CONFIG_MX31_CLK32 +#else +#define MXC_CLK32 32768 +#endif + enum mxc_clock { MXC_ARM_CLK, MXC_IPG_CLK, |