]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/powerpc/lib/setup.c
2 * Copyright (c) 2017 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
10 DECLARE_GLOBAL_DATA_PTR
;
12 int setup_board_extra(void)
16 strncpy((char *)bd
->bi_s_version
, "1.2", sizeof(bd
->bi_s_version
));
17 strncpy((char *)bd
->bi_r_version
, U_BOOT_VERSION
,
18 sizeof(bd
->bi_r_version
));
20 bd
->bi_procfreq
= gd
->cpu_clk
; /* Processor Speed, In Hz */
21 bd
->bi_plb_busfreq
= gd
->bus_clk
;
22 #if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \
23 defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
24 defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
25 bd
->bi_pci_busfreq
= get_PCI_freq();
26 bd
->bi_opbfreq
= get_OPB_freq();
27 #elif defined(CONFIG_XILINX_405)
28 bd
->bi_pci_busfreq
= get_PCI_freq();