diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-20 16:15:04 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-23 22:59:16 +0100 |
commit | 6dadc9195ad642cc662632f4d92f92d3d71e8bf2 (patch) | |
tree | b02a719245042dba9549da0ef77e332c984915ff /common | |
parent | 5df70e91c72dab45b7d81e4568b12e5a5b5f90ec (diff) | |
download | u-boot-imx-6dadc9195ad642cc662632f4d92f92d3d71e8bf2.zip u-boot-imx-6dadc9195ad642cc662632f4d92f92d3d71e8bf2.tar.gz u-boot-imx-6dadc9195ad642cc662632f4d92f92d3d71e8bf2.tar.bz2 |
Blackfin: use common strmhz() in system output
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_bdinfo.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 6675241..b660d2a 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -328,18 +328,20 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } #elif defined(CONFIG_BLACKFIN) +static void print_str(const char *, const char *); int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { int i; bd_t *bd = gd->bd; + char buf[32]; printf("U-Boot = %s\n", bd->bi_r_version); printf("CPU = %s\n", bd->bi_cpu); printf("Board = %s\n", bd->bi_board_name); - printf("VCO = %lu MHz\n", bd->bi_vco / 1000000); - printf("CCLK = %lu MHz\n", bd->bi_cclk / 1000000); - printf("SCLK = %lu MHz\n", bd->bi_sclk / 1000000); + print_str("VCO", strmhz(buf, bd->bi_vco)); + print_str("CCLK", strmhz(buf, bd->bi_cclk)); + print_str("SCLK", strmhz(buf, bd->bi_sclk)); print_num("boot_params", (ulong)bd->bi_boot_params); print_num("memstart", (ulong)bd->bi_memstart); @@ -430,7 +432,7 @@ static void print_lnum(const char *name, u64 value) } #endif -#if defined(CONFIG_PPC) || defined(CONFIG_M68K) +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_BLACKFIN) static void print_str(const char *name, const char *str) { printf ("%-12s= %6s MHz\n", name, str); |