blob: 75611e25920ed31a3637ca0af4cce355cc3cfdb2 [file] [log] [blame]
Simon Glass79d074d2020-05-10 14:16:57 -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 __weak board_detail(void)
15{
16 /* Please define board_detail() for your PPC platform */
17}
18
19void arch_print_bdinfo(void)
20{
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090021 struct bd_info *bd = gd->bd;
Simon Glass79d074d2020-05-10 14:16:57 -060022
Simon Glass64791982020-05-10 14:16:59 -060023#if defined(CONFIG_SYS_INIT_RAM_ADDR)
24 bdinfo_print_num("sramstart", (ulong)bd->bi_sramstart);
25 bdinfo_print_num("sramsize", (ulong)bd->bi_sramsize);
26#endif
27 bdinfo_print_mhz("busfreq", bd->bi_busfreq);
Simon Glass79d074d2020-05-10 14:16:57 -060028#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500)
29 bdinfo_print_num("immr_base", bd->bi_immr_base);
30#endif
31 bdinfo_print_num("bootflags", bd->bi_bootflags);
32 bdinfo_print_mhz("intfreq", bd->bi_intfreq);
33#ifdef CONFIG_ENABLE_36BIT_PHYS
34 if (IS_ENABLED(CONFIG_PHYS_64BIT))
35 puts("addressing = 36-bit\n");
36 else
37 puts("addressing = 32-bit\n");
38#endif
39 board_detail();
40#if defined(CONFIG_CPM2)
41 bdinfo_print_mhz("cpmfreq", bd->bi_cpmfreq);
42 bdinfo_print_mhz("vco", bd->bi_vco);
43 bdinfo_print_mhz("sccfreq", bd->bi_sccfreq);
44 bdinfo_print_mhz("brgfreq", bd->bi_brgfreq);
45#endif
46}