Selaa lähdekoodia

Drop prt_mpc5xxx_clks() in favour of print_cpuinfo()

Rather than having an arch-specific function, use the existing generic
one.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 8 vuotta sitten
vanhempi
commit
a009f36cfe
3 muutettua tiedostoa jossa 2 lisäystä ja 5 poistoa
  1. 1 1
      arch/powerpc/cpu/mpc5xxx/speed.c
  2. 1 1
      common/Kconfig
  3. 0 3
      common/board_f.c

+ 1 - 1
arch/powerpc/cpu/mpc5xxx/speed.c

@@ -69,7 +69,7 @@ int get_clocks (void)
 	return (0);
 }
 
-int prt_mpc5xxx_clks (void)
+int print_cpuinfo(void)
 {
 	char buf1[32], buf2[32], buf3[32];
 

+ 1 - 1
common/Kconfig

@@ -385,7 +385,7 @@ config BOARD_LATE_INIT
 
 config DISPLAY_CPUINFO
 	bool "Display information about the CPU during start up"
-	default y if ARM || BLACKFIN || NIOS2 || X86 || XTENSA
+	default y if ARM || BLACKFIN || NIOS2 || X86 || XTENSA || MPC5xxx
 	help
 	  Display information about the CPU that U-Boot is running on
 	  when U-Boot starts up. The function print_cpuinfo() is called

+ 0 - 3
common/board_f.c

@@ -919,9 +919,6 @@ static init_fnc_t init_sequence_f[] = {
 #if defined(CONFIG_DISPLAY_CPUINFO)
 	print_cpuinfo,		/* display cpu info (and speed) */
 #endif
-#if defined(CONFIG_MPC5xxx)
-	prt_mpc5xxx_clks,
-#endif /* CONFIG_MPC5xxx */
 #if defined(CONFIG_DISPLAY_BOARDINFO)
 	show_board_info,
 #endif