Message ID | 1265261099-2236-1-git-send-email-ch.naveen@samsung.com |
---|---|
State | Changes Requested |
Delegated to: | Minkyu Kang |
Headers | show |
Dear Naveen Krishna Ch, On 4 February 2010 14:24, Naveen Krishna Ch <ch.naveen@samsung.com> wrote: > From: Naveen Krishna CH <ch.naveen@samsung.com> > > Prints the frequencies of the 4 PLLs along with CPU Info > > Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com> > --- > cpu/arm_cortexa8/s5pc1xx/cpu_info.c | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/cpu/arm_cortexa8/s5pc1xx/cpu_info.c b/cpu/arm_cortexa8/s5pc1xx/cpu_info.c > index f16c0ff..ab99284 100644 > --- a/cpu/arm_cortexa8/s5pc1xx/cpu_info.c > +++ b/cpu/arm_cortexa8/s5pc1xx/cpu_info.c > @@ -26,6 +26,10 @@ > > /* Default is s5pc100 */ > unsigned int s5pc1xx_cpu_id = 0xC100; > +#define APLL 0 > +#define MPLL 1 > +#define EPLL 2 > +#define HPLL 3 why you redefine? you already moved it to clk.h > > #ifdef CONFIG_ARCH_CPU_INIT > int arch_cpu_init(void) > @@ -51,6 +55,10 @@ int print_cpuinfo(void) > > printf("CPU:\tS5P%X@%sMHz\n", > s5pc1xx_cpu_id, strmhz(buf, get_arm_clk())); > + printf("APLL:\t%sMHz \t", strmhz(buf, get_pll_clk(APLL))); > + printf("MPLL:\t%sMHz \n", strmhz(buf, get_pll_clk(MPLL))); > + printf("EPLL:\t%sMHz \t", strmhz(buf, get_pll_clk(EPLL))); > + printf("HPLL:\t%sMHz \n", strmhz(buf, get_pll_clk(HPLL))); NAK. This information is not useful information to users. > > return 0; > } > -- > 1.6.6 > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > Thanks, Minkyu Kang.
diff --git a/cpu/arm_cortexa8/s5pc1xx/cpu_info.c b/cpu/arm_cortexa8/s5pc1xx/cpu_info.c index f16c0ff..ab99284 100644 --- a/cpu/arm_cortexa8/s5pc1xx/cpu_info.c +++ b/cpu/arm_cortexa8/s5pc1xx/cpu_info.c @@ -26,6 +26,10 @@ /* Default is s5pc100 */ unsigned int s5pc1xx_cpu_id = 0xC100; +#define APLL 0 +#define MPLL 1 +#define EPLL 2 +#define HPLL 3 #ifdef CONFIG_ARCH_CPU_INIT int arch_cpu_init(void) @@ -51,6 +55,10 @@ int print_cpuinfo(void) printf("CPU:\tS5P%X@%sMHz\n", s5pc1xx_cpu_id, strmhz(buf, get_arm_clk())); + printf("APLL:\t%sMHz \t", strmhz(buf, get_pll_clk(APLL))); + printf("MPLL:\t%sMHz \n", strmhz(buf, get_pll_clk(MPLL))); + printf("EPLL:\t%sMHz \t", strmhz(buf, get_pll_clk(EPLL))); + printf("HPLL:\t%sMHz \n", strmhz(buf, get_pll_clk(HPLL))); return 0; }