blob: 971c47c30648c8a4e0d63464466322a003baa866 [file] [log] [blame]
Simon Glass1a520d92020-05-10 14:16:58 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PPC-specific information for the 'bd' command
4 *
5 * (C) Copyright 2003
6 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 */
8
9#include <common.h>
10#include <init.h>
11
12DECLARE_GLOBAL_DATA_PTR;
13
14void arch_print_bdinfo(void)
15{
16 bd_t *bd = gd->bd;
17
Simon Glass64791982020-05-10 14:16:59 -060018#if defined(CONFIG_SYS_INIT_RAM_ADDR)
19 bdinfo_print_num("sramstart", (ulong)bd->bi_sramstart);
20 bdinfo_print_num("sramsize", (ulong)bd->bi_sramsize);
21#endif
22 bdinfo_print_mhz("busfreq", bd->bi_busfreq);
Simon Glass1a520d92020-05-10 14:16:58 -060023#if defined(CONFIG_SYS_MBAR)
24 bdinfo_print_num("mbar", bd->bi_mbar_base);
25#endif
26 bdinfo_print_mhz("cpufreq", bd->bi_intfreq);
27 if (IS_ENABLED(CONFIG_PCI))
28 bdinfo_print_mhz("pcifreq", bd->bi_pcifreq);
29#ifdef CONFIG_EXTRA_CLOCK
30 bdinfo_print_mhz("flbfreq", bd->bi_flbfreq);
31 bdinfo_print_mhz("inpfreq", bd->bi_inpfreq);
32 bdinfo_print_mhz("vcofreq", bd->bi_vcofreq);
33#endif
34}