提交 be86492b 编写于 作者: C Chris Packham 提交者: Tom Rini

lib: make strmhz available in SPL

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: NTony O'Brien <tony.obrien@alliedtelesis.co.nz>
Reviewed-by: NSimon Glass <sjg@chromium.org>
Signed-off-by: NChris Packham <judge.packham@gmail.com>
上级 25bab53a
...@@ -42,7 +42,6 @@ obj-y += rc4.o ...@@ -42,7 +42,6 @@ obj-y += rc4.o
obj-$(CONFIG_SHA1) += sha1.o obj-$(CONFIG_SHA1) += sha1.o
obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
obj-$(CONFIG_SHA256) += sha256.o obj-$(CONFIG_SHA256) += sha256.o
obj-y += strmhz.o
obj-$(CONFIG_TPM) += tpm.o obj-$(CONFIG_TPM) += tpm.o
obj-$(CONFIG_RBTREE) += rbtree.o obj-$(CONFIG_RBTREE) += rbtree.o
obj-$(CONFIG_BITREVERSE) += bitrev.o obj-$(CONFIG_BITREVERSE) += bitrev.o
...@@ -85,11 +84,11 @@ ifdef CONFIG_SPL_BUILD ...@@ -85,11 +84,11 @@ ifdef CONFIG_SPL_BUILD
ifdef CONFIG_USE_TINY_PRINTF ifdef CONFIG_USE_TINY_PRINTF
obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
else 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 endif
else else
# Main U-Boot always uses the full printf support # 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 endif
subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册