summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-08-18 13:41:27 +0200
committerWolfgang Denk <wd@denx.de>2008-08-21 01:52:49 +0200
commit0768b7a872964085eece8d5e9fec9175e9deb161 (patch)
treefe9fcd3e6264f6eb075b7c2eb799221556e4f0c6 /lib_ppc/board.c
parenta928d0df211f1d829308d335d19be3ca42558dfc (diff)
downloadu-boot-imx-0768b7a872964085eece8d5e9fec9175e9deb161.zip
u-boot-imx-0768b7a872964085eece8d5e9fec9175e9deb161.tar.gz
u-boot-imx-0768b7a872964085eece8d5e9fec9175e9deb161.tar.bz2
Consolidate strmhz() implementation
ARM, i386, m68k and ppc all have identical implementations of strmhz(). Other architectures don't provide this function at all. This patch moves strmhz() into lib_generic, reducing code duplication and providing a more unified API across architectures. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 71a70db..c8f075f 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -168,19 +168,6 @@ void *sbrk (ptrdiff_t increment)
return ((void *) old);
}
-char *strmhz (char *buf, long hz)
-{
- long l, n;
- long m;
-
- n = hz / 1000000L;
- l = sprintf (buf, "%ld", n);
- m = (hz % 1000000L) / 1000L;
- if (m != 0)
- sprintf (buf + l, ".%03ld", m);
- return (buf);
-}
-
/*
* All attempts to come up with a "common" initialization sequence
* that works for all boards and architectures failed: some of the