From patchwork Fri Jul 3 00:16:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 490885 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 4DD7C1402A9 for ; Fri, 3 Jul 2015 10:27:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=nR4vji95; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D5FC74B691; Fri, 3 Jul 2015 02:26:24 +0200 (CEST) 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 9Tn9C8UVppSt; Fri, 3 Jul 2015 02:26:24 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2B3B44B741; Fri, 3 Jul 2015 02:25:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 192464B6EA for ; Fri, 3 Jul 2015 02:24:59 +0200 (CEST) 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 HauffrNGvtp1 for ; Fri, 3 Jul 2015 02:24:59 +0200 (CEST) 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 mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by theia.denx.de (Postfix) with ESMTPS id 6CF2F4B6C3 for ; Fri, 3 Jul 2015 02:24:52 +0200 (CEST) Received: by igrv9 with SMTP id v9so68004157igr.1 for ; Thu, 02 Jul 2015 17:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=AwGoDIhrBon5oRwTTPU53p3DzfIBaf4n13kB442nh+w=; b=nR4vji95GS1vAD7cRk+or6kGLWzg1AlyjV9SnT9SAmD3u++NwegVDBMTlPZuyzM+P0 salzYrFBu66cQM4KHU18+GWfgGlRA7xzvZbtURDTFVhCiq67gYNCkP6A4ZjrCcbJ/8Xe wWIjE9RzjQyES6DVUP7k/tjCZY2M9HmcbmIR5fQemJz/URJAIaMxYOBxvhN9d5mdNriT sJ06fRW0TjrZxOqh0WYKLzLmlncm/1Y+AJuqShSWv2OsfBO+/wRo5BXweLJLxffCqMUz D/oLzgEBQ2uGFDPliR1Vg7PSd4eN3HBy/EVZLSXozZ5APV9gv/o7z0y7vLnBEIH4V7iE UjDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=AwGoDIhrBon5oRwTTPU53p3DzfIBaf4n13kB442nh+w=; b=i+xfZyNVqTn9qbGhY2AlQrZjlFNSYHxBnRESNmnL0r1bCqhJsqB7jpu8urfuGkIKM1 wKqc8uZLtRYSZhy8qhJvkMapp3c1xmjeIr8sqzSAbhvYoJTxFmNilajIZ0mhCyz5wfrn 2BLeWTAAhR2l8pYVuB2hSBFXGkAka5Rk+vdMbbpC7ZPkIpE+gFOePCwr5J8NeHJD6lzj 4PmzwtSejRkY+E+QsJJ4Awn0XcACR8r/B+7W4yzcZAriuLxl5IsHlzlYGYjghxZvm35Q KjaGPDA2G2k1wfPbGe3Es+MQpOYalzttLvfuWbEegcsP5IgzERAC1+FBkb08pqKNEtyt 4arg== X-Gm-Message-State: ALoCoQnk0rPvXJBrwsVrFyiMcvhE6rB5W2CyUmozz4SQroyyYOaErR5GEvXcFuvdS1l4Xn0mSXO3 X-Received: by 10.107.12.143 with SMTP id 15mr51367093iom.75.1435883091090; Thu, 02 Jul 2015 17:24:51 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:1100:4998:7123:8ba4:fc02]) by smtp.gmail.com with ESMTPSA id bf10sm2344414igb.12.2015.07.02.17.24.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 17:24:48 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 881BB2212E6; Thu, 2 Jul 2015 18:16:55 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Thu, 2 Jul 2015 18:16:15 -0600 Message-Id: <1435882592-487-39-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1435882592-487-1-git-send-email-sjg@chromium.org> References: <1435882592-487-1-git-send-email-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 38/55] exynos: Tidy up CPU frequency display X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Line up the display with the line below, e.g.: CPU: Exynos5250 @ 1.7 GHz Model: Google Spring DRAM: 2 GiB MMC: EXYNOS DWMMC: 0 Also show the speed as GHz where appropriate. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/cpu_info.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/cpu/armv7/s5p-common/cpu_info.c b/arch/arm/cpu/armv7/s5p-common/cpu_info.c index a8d91e7..154d674 100644 --- a/arch/arm/cpu/armv7/s5p-common/cpu_info.c +++ b/arch/arm/cpu/armv7/s5p-common/cpu_info.c @@ -30,11 +30,8 @@ u32 get_device_type(void) #ifdef CONFIG_DISPLAY_CPUINFO int print_cpuinfo(void) { - char buf[32]; - - printf("CPU:\t%s%X@%sMHz\n", - s5p_get_cpu_name(), s5p_cpu_id, - strmhz(buf, get_arm_clk())); + printf("CPU: %s%X @ ", s5p_get_cpu_name(), s5p_cpu_id); + print_freq(get_arm_clk(), "\n"); return 0; }