projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mx5/6: Define default SoC input clock frequencies
[platform/kernel/u-boot.git]
/
arch
/
arm
/
include
/
asm
/
arch-mx6
/
clock.h
diff --git
a/arch/arm/include/asm/arch-mx6/clock.h
b/arch/arm/include/asm/arch-mx6/clock.h
index
2af04f0
..
db377cc
100644
(file)
--- a/
arch/arm/include/asm/arch-mx6/clock.h
+++ b/
arch/arm/include/asm/arch-mx6/clock.h
@@
-24,6
+24,20
@@
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
+#include <common.h>
+
+#ifdef CONFIG_SYS_MX6_HCLK
+#define MXC_HCLK CONFIG_SYS_MX6_HCLK
+#else
+#define MXC_HCLK 24000000
+#endif
+
+#ifdef CONFIG_SYS_MX6_CLK32
+#define MXC_CLK32 CONFIG_SYS_MX6_CLK32
+#else
+#define MXC_CLK32 32768
+#endif
+
enum mxc_clock {
MXC_ARM_CLK = 0,
MXC_PER_CLK,
enum mxc_clock {
MXC_ARM_CLK = 0,
MXC_PER_CLK,