diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-08-18 13:41:27 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-21 01:52:49 +0200 |
commit | 0768b7a872964085eece8d5e9fec9175e9deb161 (patch) | |
tree | fe9fcd3e6264f6eb075b7c2eb799221556e4f0c6 /include/common.h | |
parent | a928d0df211f1d829308d335d19be3ca42558dfc (diff) | |
download | u-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 'include/common.h')
-rw-r--r-- | include/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 06ed278..de3d595 100644 --- a/include/common.h +++ b/include/common.h @@ -224,7 +224,6 @@ void board_init_r (gd_t *, ulong) __attribute__ ((noreturn)); int checkboard (void); int checkflash (void); int checkdram (void); -char * strmhz(char *buf, long hz); int last_stage_init(void); extern ulong monitor_flash_len; int mac_read_from_eeprom(void); @@ -615,6 +614,9 @@ int sprintf(char * buf, const char *fmt, ...) __attribute__ ((format (__printf__, 2, 3))); int vsprintf(char *buf, const char *fmt, va_list args); +/* lib_generic/strmhz.c */ +char * strmhz(char *buf, long hz); + /* lib_generic/crc32.c */ uint32_t crc32 (uint32_t, const unsigned char *, uint); uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint); |