From patchwork Thu Feb 4 05:24:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,2/2] S5PC100: Prints the PLL clock frequencies Date: Wed, 03 Feb 2010 19:24:59 -0000 From: Naveen Krishna Ch X-Patchwork-Id: 71720 Message-Id: <1265261099-2236-1-git-send-email-ch.naveen@samsung.com> To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com From: Naveen Krishna CH Prints the frequencies of the 4 PLLs along with CPU Info Signed-off-by: Naveen Krishna Ch --- 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 #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; }