Simon Glass | 1a520d9 | 2020-05-10 14:16:58 -0600 | [diff] [blame] | 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 | { |
Masahiro Yamada | b75d8dc | 2020-06-26 15:13:33 +0900 | [diff] [blame] | 16 | struct bd_info *bd = gd->bd; |
Simon Glass | 1a520d9 | 2020-05-10 14:16:58 -0600 | [diff] [blame] | 17 | |
Simon Glass | 6479198 | 2020-05-10 14:16:59 -0600 | [diff] [blame] | 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); |
Simon Glass | 1a520d9 | 2020-05-10 14:16:58 -0600 | [diff] [blame] | 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 | } |