summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-mx25
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2012-08-21 11:05:12 +0000
committerStefano Babic <sbabic@denx.de>2012-09-06 11:05:09 +0200
commit1b2080f3388b70c4c37b69830f73a61c50cdd505 (patch)
tree5aee8d7ee03a4e2a87eef606f8186f41604ef486 /arch/arm/include/asm/arch-mx25
parent82e1b543b51fb514731992eeb2a6bdcdc279950e (diff)
downloadtalos-obmc-uboot-1b2080f3388b70c4c37b69830f73a61c50cdd505.tar.gz
talos-obmc-uboot-1b2080f3388b70c4c37b69830f73a61c50cdd505.zip
mx25: Define default SoC input clock frequencies
Define default SoC input clock frequencies for i.MX25 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: Matthias Weisser <weisserm@arcor.de>
Diffstat (limited to 'arch/arm/include/asm/arch-mx25')
-rw-r--r--arch/arm/include/asm/arch-mx25/clock.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx25/clock.h b/arch/arm/include/asm/arch-mx25/clock.h
index 0f47eaf053..a313b80611 100644
--- a/arch/arm/include/asm/arch-mx25/clock.h
+++ b/arch/arm/include/asm/arch-mx25/clock.h
@@ -26,6 +26,20 @@
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
+#include <common.h>
+
+#ifdef CONFIG_MX25_HCLK_FREQ
+#define MXC_HCLK CONFIG_MX25_HCLK_FREQ
+#else
+#define MXC_HCLK 24000000
+#endif
+
+#ifdef CONFIG_MX25_CLK32
+#define MXC_CLK32 CONFIG_MX25_CLK32
+#else
+#define MXC_CLK32 32768
+#endif
+
enum mxc_clock {
MXC_CSI_CLK,
MXC_EPIT_CLK,
OpenPOWER on IntegriCloud