Merge tag 'u-boot-amlogic-20200708' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / arch / m68k / lib / bdinfo.c
1 // 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
12 DECLARE_GLOBAL_DATA_PTR;
13
14 void arch_print_bdinfo(void)
15 {
16         bd_t *bd = gd->bd;
17
18 #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);
23 #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 }