diff mbox

[U-Boot] unassigned-patches/51: [PATCH] S5PC100: Moved the #defines for PLLs to common header file

Message ID 20100203132001.AC3D728077@theia.denx.de
State Accepted
Commit 2167f2715e127591ed2abcea075ce89bbbf68864
Headers show

Commit Message

u-boot@bugs.denx.de Feb. 3, 2010, 1:20 p.m. UTC
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>

---
Added to GNATS database as unassigned-patches/51
>Responsible:    patch-coord
>Message-Id:     <1265200544-26547-1-git-send-email-ch.naveen@samsung.com>
>In-Reply-To:    
>References:     
>Patch-Date:     Wed Feb 03 13:35:44 +0100 2010
---
 cpu/arm_cortexa8/s5pc1xx/clock.c   |    7 +------
 include/asm-arm/arch-s5pc1xx/clk.h |    6 ++++++
 2 files changed, 7 insertions(+), 6 deletions(-)
diff mbox

Patch

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);