From patchwork Thu Feb 4 05:24:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Ch X-Patchwork-Id: 71720 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 3ACD6E6D390 for ; Thu, 4 Feb 2010 06:41:05 +0100 (CET) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 22D21C7FA5C1 for ; Thu, 4 Feb 2010 06:41:05 +0100 (CET) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Thu, 04 Feb 2010 06:41:05 +0100 (CET) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 04 Feb 2010 06:39:12 +0100 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Thu, 04 Feb 2010 06:39:12 +0100 Received: from scanner-1.m-online.net (unknown [192.168.8.165]) by mail.m-online.net (Postfix) with ESMTP id 0633F200096; Thu, 4 Feb 2010 06:39:12 +0100 (CET) Received: from mxin-1.m-online.net ([192.168.6.164]) by scanner-1.m-online.net (scanner-1.m-online.net [192.168.8.165]) (amavisd-new, port 10026) with ESMTP id 30524-03; Thu, 4 Feb 2010 06:39:10 +0100 (CET) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 0D11746C0A0; Thu, 4 Feb 2010 06:39:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 79D12280A7; Thu, 4 Feb 2010 06:38:57 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rhM2bZ1ju5HL; Thu, 4 Feb 2010 06:38:57 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CC242808A; Thu, 4 Feb 2010 06:38:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB68528080 for ; Thu, 4 Feb 2010 06:38:43 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KuujCBelYAjb for ; Thu, 4 Feb 2010 06:38:42 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) by theia.denx.de (Postfix) with ESMTPS id B3DC92807D for ; Thu, 4 Feb 2010 06:38:42 +0100 (CET) Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.69) (envelope-from ) id 1NcuQL-000398-8s; Thu, 04 Feb 2010 06:38:41 +0100 Received: from [12.23.106.52] (helo=localhost.localdomain) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1Nctp3-0006s9-59; Thu, 04 Feb 2010 14:00:09 +0900 From: Naveen Krishna Ch To: u-boot@lists.denx.de Date: Thu, 4 Feb 2010 14:24:59 +0900 Message-Id: <1265261099-2236-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: References: Cc: mk7.kang@samsung.com Subject: [U-Boot] [PATCH 2/2] S5PC100: Prints the PLL clock frequencies X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net 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; }