[U-Boot] [PATCH 2/2] S5PC100: Prints the PLL clock frequencies
Naveen Krishna Ch
ch.naveen at samsung.com
Thu Feb 4 06:24:59 CET 2010
From: Naveen Krishna CH <ch.naveen at samsung.com>
Prints the frequencies of the 4 PLLs along with CPU Info
Signed-off-by: Naveen Krishna Ch <ch.naveen at 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
#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;
}
--
1.6.6
More information about the U-Boot
mailing list