Skip to contentSkip to conversation

S5PC100: Moves the Macros to a common header file

PATCH New Naveen Krishna Ch 2 participants 2 messages Feb 4, 2010 – Feb 8, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1NctdU-0006qR-PK

#1 lore raw

PATCH 1/2 S5PC100: Moves the Macros to a common header file

From: Naveen Krishna CH <ch.naveen.samsung.com>

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.

---
 cpu/arm_cortexa8/s5pc1xx/clock.c   |    7 +------
 include/asm-arm/arch-s5pc1xx/clk.h |    6 ++++++
 2 files changed, 7 insertions(+), 6 deletions(-)
cpu/arm_cortexa8/s5pc1xx/clock.c +1 -6
index a9e78dd..19619f9 100644
@@ -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
include/asm-arm/arch-s5pc1xx/clk.h +6 -0
index f1aa44f..3e59abe 100644
@@ -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);
Signature · 1 line
1.6.6
#2 lore raw

PATCH 1/2 S5PC100: Moves the Macros to a common header file

Dear Naveen Krishna Ch,

Quoted 48 lines · Naveen Krishna Ch

From: Naveen Krishna CH <ch.naveen.samsung.com>

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.

---
?cpu/arm_cortexa8/s5pc1xx/clock.c ? | ? ?7 +------ ?include/asm-arm/arch-s5pc1xx/clk.h | ? ?6 ++++++ ?2 files changed, 7 insertions(+), 6 deletions(-)

cpu/arm_cortexa8/s5pc1xx/clock.c +0 -0
index a9e78dd..19619f9 100644
@@ -25,12 +25,7 @@

?#include <common.h>
?#include <asm/io.h>
?#include <asm/arch/clock.h>

cpu/arm_cortexa8/s5pc1xx/clock.c +1 -6
-
-#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

include/asm-arm/arch-s5pc1xx/clk.h +0 -0
index f1aa44f..3e59abe 100644
@@ -23,6 +23,12 @@

?#ifndef __ASM_ARM_ARCH_CLK_H_
?#define __ASM_ARM_ARCH_CLK_H_

include/asm-arm/arch-s5pc1xx/clk.h +6 -0
+#define APLL ? 0
+#define MPLL ? 1
+#define EPLL ? 2
+#define HPLL ? 3
+#define VPLL ? 4
+

?void s5pc1xx_clock_init(void);

Quoted 9 lines

?extern unsigned long (*get_pll_clk)(int pllreg);
--
1.6.6

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

applied to u-boot-samsung

Thanks
Minkyu Kang

Signature · 2 lines
from. prom.
www.promsoft.net