]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
S5PC100: Moves the Macros to a common header file
authorNaveen Krishna CH <ch.naveen.samsung.com>
Thu, 4 Feb 2010 05:17:38 +0000 (14:17 +0900)
committertrix <trix@windriver.com>
Sat, 13 Mar 2010 14:11:15 +0000 (08:11 -0600)
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>
cpu/arm_cortexa8/s5pc1xx/clock.c
include/asm-arm/arch-s5pc1xx/clk.h

index a9e78dd793d85c0278c468f0afd94b5e30da1043..19619f92cd96bfbea16322ae7446973e3c64ceda 100644 (file)
 #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
index f1aa44fd25fb9dbb22eee67a3350ebd3b46e73aa..3e59abe78c65142b84aeb43353174eb4915d6d35 100644 (file)
 #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);