From patchwork Wed May 25 02:20:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 625998 X-Patchwork-Delegate: trini@ti.com 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 3rDwxR6RlJz9sDX for ; Wed, 25 May 2016 12:20:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=e3zlRWnn; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C5D9DA7534; Wed, 25 May 2016 04:20:57 +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 Q6fmI5i3ccoP; Wed, 25 May 2016 04:20:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2BD5AA74F1; Wed, 25 May 2016 04:20:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A724BA74F1 for ; Wed, 25 May 2016 04:20:54 +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 pZV1hGI5pqOp for ; Wed, 25 May 2016 04:20:54 +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-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by theia.denx.de (Postfix) with ESMTPS id 1A88EA74DB for ; Wed, 25 May 2016 04:20:50 +0200 (CEST) Received: by mail-pa0-f68.google.com with SMTP id yl2so3674362pac.1 for ; Tue, 24 May 2016 19:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8YkSU1NDwsfcJHeCHmAnxjWHv9GuTtluBjm4yG714UY=; b=e3zlRWnnFzB+Ug7v9ygDoaK5Mr0//8C1SWCrqU6u7nHHxDeoR7goI6p8P3Q1phVF7j s5wLsGm9y9RC/GCD5sD7E5b65LsWoYgsGay/8zRaOcLeFxVVy3VGDyCfFcMEn8rotwXl 2himzDmhLVaTLYq6ptciPrzdga94erWFH6GAZFM3KIR079VTujj1oksevI3qihCuWadv V0mMsmyM0e0V7/6DZRpUNX/5ODjxQrSfwFmUh+MiHozcREswMArNvaglELtVJEqhuSgk fQ48VjziMcI1k/w3HxE9VtHal6NXy4REVvOB6mriGm3EhWnR1VCT4IK7pImmqHHZLwK3 AEbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8YkSU1NDwsfcJHeCHmAnxjWHv9GuTtluBjm4yG714UY=; b=Ruhe7ofSDpVS9TNoH7Vd/f2yeTiybAJe1y8f2Q2lo4E3Bs18e4/9kl105j2bC1mos6 n049kdFGIWu6m0Uwk82YbnFOpGU/+5RCw90QT7/q5/0t/bnkRJ5yf36hEyOsHO3uC3l0 qBMJfJP34glOw7spbsBcBKhkVYnIJPfP+QMKiIq/DzYZk3/ji4HFfMzdfVwMRY8s1DHv Rp72BNru06/SYDZRhisfGeQBZ+DvQivrOS8tLMcbGimN4AHS54SiKeSYhJUARkLQEsi8 FtTPREE+pluZ6dgM8bHxXSF8yYusRR+5olevgW3BuVl/03431lWcPgOlwt+bJvy98Zyf xPlQ== X-Gm-Message-State: ALyK8tItWf+AnFI+4pIUbzzusi+lLwZaQ20/lcSav4s8kCvN/eJDiQdpSP4FevKAYj92XA== X-Received: by 10.66.54.35 with SMTP id g3mr2152030pap.30.1464142849032; Tue, 24 May 2016 19:20:49 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id y3sm8229524par.2.2016.05.24.19.20.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 May 2016 19:20:48 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Date: Wed, 25 May 2016 14:20:33 +1200 Message-Id: <1464142833-30124-1-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.8.2 Cc: Tom Rini , Chris Packham , Julius Werner , Stefan Roese , Chris Packham Subject: [U-Boot] [RFC PATCH v1] lib: make strmhz available in SPL 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" From: Chris Packham When setting up a DDR controller it is useful to be able to display frequencies in a readable form. Make the strmhz() function available in SPL builds provided there is full vsprintf available. Reviewed-by: Tony O'Brien Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- lib/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 02dfa29..f77befe 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -42,7 +42,6 @@ obj-y += rc4.o obj-$(CONFIG_SHA1) += sha1.o obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o obj-$(CONFIG_SHA256) += sha256.o -obj-y += strmhz.o obj-$(CONFIG_TPM) += tpm.o obj-$(CONFIG_RBTREE) += rbtree.o obj-$(CONFIG_BITREVERSE) += bitrev.o @@ -85,11 +84,11 @@ ifdef CONFIG_SPL_BUILD ifdef CONFIG_USE_TINY_PRINTF obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o else -obj-$(CONFIG_SPL_SERIAL_SUPPORT) += vsprintf.o panic.o strto.o +obj-$(CONFIG_SPL_SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o endif else # Main U-Boot always uses the full printf support -obj-y += vsprintf.o panic.o strto.o +obj-y += vsprintf.o panic.o strto.o strmhz.o endif subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2