summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Krishna CH <ch.naveen.samsung.com>2010-02-04 14:17:38 +0900
committertrix <trix@windriver.com>2010-03-13 08:11:15 -0600
commit0468afff3097c09f7f462591cf0edb8b3519892f (patch)
treeb8b07b2a9b3e1ffb0155558822e6a0116b8f3763
parent6d5ef5335a5eff8f925d4f9bf946757744287d00 (diff)
downloadu-boot-imx-0468afff3097c09f7f462591cf0edb8b3519892f.zip
u-boot-imx-0468afff3097c09f7f462591cf0edb8b3519892f.tar.gz
u-boot-imx-0468afff3097c09f7f462591cf0edb8b3519892f.tar.bz2
S5PC100: Moves the Macros to a common header file
The get_pll_clk(int) API returns the PLL frequency based on the (int) argument which is defined locally in clock.c Moving that #define to common header file (clk.h) would be helpful when using the API from other files. Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--cpu/arm_cortexa8/s5pc1xx/clock.c7
-rw-r--r--include/asm-arm/arch-s5pc1xx/clk.h6
2 files changed, 7 insertions, 6 deletions
diff --git a/cpu/arm_cortexa8/s5pc1xx/clock.c b/cpu/arm_cortexa8/s5pc1xx/clock.c
index a9e78dd..19619f9 100644
--- a/cpu/arm_cortexa8/s5pc1xx/clock.c
+++ b/cpu/arm_cortexa8/s5pc1xx/clock.c
@@ -25,12 +25,7 @@
#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
-
-#define APLL 0
-#define MPLL 1
-#define EPLL 2
-#define HPLL 3
-#define VPLL 4
+#include <asm/arch/clk.h>
#define CLK_M 0
#define CLK_D 1
diff --git a/include/asm-arm/arch-s5pc1xx/clk.h b/include/asm-arm/arch-s5pc1xx/clk.h
index f1aa44f..3e59abe 100644
--- a/include/asm-arm/arch-s5pc1xx/clk.h
+++ b/include/asm-arm/arch-s5pc1xx/clk.h
@@ -23,6 +23,12 @@
#ifndef __ASM_ARM_ARCH_CLK_H_
#define __ASM_ARM_ARCH_CLK_H_
+#define APLL 0
+#define MPLL 1
+#define EPLL 2
+#define HPLL 3
+#define VPLL 4
+
void s5pc1xx_clock_init(void);
extern unsigned long (*get_pll_clk)(int pllreg);