From e5fb573f6431d7585ef43eb02b67ac1a07f40094 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 31 Mar 2017 08:40:36 -0600 Subject: powerpc: Move setup_board_extra() into a PPC file We don't need this PPC-specific function in generic code. Move it to the powerpc directory. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese --- common/board_f.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'common/board_f.c') diff --git a/common/board_f.c b/common/board_f.c index e483b4b06c..bafe3aa49c 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -11,7 +11,6 @@ */ #include -#include #include #include #include @@ -607,30 +606,6 @@ static int setup_board_part2(void) } #endif -#ifdef CONFIG_SYS_EXTBDINFO -static int setup_board_extra(void) -{ - bd_t *bd = gd->bd; - - strncpy((char *) bd->bi_s_version, "1.2", sizeof(bd->bi_s_version)); - strncpy((char *) bd->bi_r_version, U_BOOT_VERSION, - sizeof(bd->bi_r_version)); - - bd->bi_procfreq = gd->cpu_clk; /* Processor Speed, In Hz */ - bd->bi_plb_busfreq = gd->bus_clk; -#if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \ - defined(CONFIG_440EP) || defined(CONFIG_440GR) || \ - defined(CONFIG_440EPX) || defined(CONFIG_440GRX) - bd->bi_pci_busfreq = get_PCI_freq(); - bd->bi_opbfreq = get_OPB_freq(); -#elif defined(CONFIG_XILINX_405) - bd->bi_pci_busfreq = get_PCI_freq(); -#endif - - return 0; -} -#endif - #ifdef CONFIG_POST static int init_post(void) { -- cgit v1.2.1