From: Minkyu Kang Date: Mon, 8 Feb 2010 12:16:07 +0900 Subject: [U-Boot] [PATCH 1/2] S5PC100: Moves the Macros to a common header file In-Reply-To: <1265260658-2165-1-git-send-email-ch.naveen@samsung.com> References: <1265260658-2165-1-git-send-email-ch.naveen@samsung.com> Message-ID: <1f3430fb1002071916u544e836fr7fe737465bbe6cfd@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Naveen Krishna Ch, On 4 February 2010 14:17, Naveen Krishna Ch wrote: > From: Naveen Krishna CH > > 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 > --- > ?cpu/arm_cortexa8/s5pc1xx/clock.c ? | ? ?7 +------ > ?include/asm-arm/arch-s5pc1xx/clk.h | ? ?6 ++++++ > ?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 > ?#include > ?#include > - > -#define APLL ? 0 > -#define MPLL ? 1 > -#define EPLL ? 2 > -#define HPLL ? 3 > -#define VPLL ? 4 > +#include > > ?#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); > -- > 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 -- from. prom. www.promsoft.net