Re: [U-Boot] [PATCH 2/2] S5PC100: Prints the PLL clock frequencies

2010-02-03 Thread Minkyu Kang
Dear Naveen Krishna Ch,

On 4 February 2010 14:24, Naveen Krishna Ch  wrote:
> 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

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:\ts5...@%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.
-- 
from. prom.
www.promsoft.net
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] S5PC100: Prints the PLL clock frequencies

2010-02-03 Thread Naveen Krishna Ch
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 APLL0
+#define MPLL1
+#define EPLL2
+#define HPLL3
 
 #ifdef CONFIG_ARCH_CPU_INIT
 int arch_cpu_init(void)
@@ -51,6 +55,10 @@ int print_cpuinfo(void)
 
printf("CPU:\ts5...@%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

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