diff mbox

[U-Boot,v2] lib: make strmhz available in SPL

Message ID 1464683459-8830-1-git-send-email-judge.packham@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Chris Packham May 31, 2016, 8:30 a.m. UTC
From: Chris Packham <chris.packham@alliedtelesis.co.nz>

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 <tony.obrien@alliedtelesis.co.nz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
Changes in v2:
- Collect review from Simon
- Drop RFC

 lib/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Tom Rini June 6, 2016, 9:28 p.m. UTC | #1
On Tue, May 31, 2016 at 08:30:59PM +1200, Chris Packham wrote:

> From: Chris Packham <chris.packham@alliedtelesis.co.nz>
> 
> 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 <tony.obrien@alliedtelesis.co.nz>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Chris Packham <judge.packham@gmail.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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