Browse Source

common: Move clock functions into a new file

These three clock functions don't use driver model and should be migrated.
In the meantime, create a new file to hold them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 4 years ago
parent
commit
d96c26040e
71 changed files with 86 additions and 11 deletions
  1. 1 0
      arch/arm/cpu/arm1136/mx35/generic.c
  2. 1 0
      arch/arm/cpu/arm926ejs/lpc32xx/clk.c
  3. 1 0
      arch/arm/cpu/arm926ejs/mx25/generic.c
  4. 1 0
      arch/arm/cpu/armv7/ls102xa/clock.c
  5. 1 0
      arch/arm/cpu/armv7/ls102xa/fdt.c
  6. 1 0
      arch/arm/cpu/armv7/vf610/generic.c
  7. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/fdt.c
  8. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
  9. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
  10. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/soc.c
  11. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/spl.c
  12. 1 0
      arch/arm/cpu/armv8/s32v234/generic.c
  13. 1 0
      arch/arm/mach-imx/mx7/clock.c
  14. 1 0
      arch/arm/mach-imx/mx7ulp/clock.c
  15. 1 0
      arch/arm/mach-imx/speed.c
  16. 1 0
      arch/m68k/cpu/mcf5227x/speed.c
  17. 1 0
      arch/m68k/cpu/mcf523x/speed.c
  18. 2 1
      arch/m68k/cpu/mcf52x2/speed.c
  19. 1 0
      arch/m68k/cpu/mcf530x/speed.c
  20. 1 0
      arch/m68k/cpu/mcf532x/speed.c
  21. 1 0
      arch/m68k/cpu/mcf5445x/speed.c
  22. 1 0
      arch/m68k/cpu/mcf547x_8x/speed.c
  23. 1 0
      arch/mips/mach-ath79/ar933x/clk.c
  24. 1 0
      arch/mips/mach-ath79/ar934x/clk.c
  25. 1 0
      arch/mips/mach-ath79/qca953x/clk.c
  26. 1 0
      arch/mips/mach-ath79/qca956x/clk.c
  27. 1 0
      arch/powerpc/cpu/mpc83xx/fdt.c
  28. 1 0
      arch/powerpc/cpu/mpc83xx/speed.c
  29. 1 0
      arch/powerpc/cpu/mpc83xx/spl_minimal.c
  30. 1 0
      arch/powerpc/cpu/mpc85xx/fdt.c
  31. 2 3
      arch/powerpc/cpu/mpc85xx/speed.c
  32. 1 0
      arch/powerpc/cpu/mpc86xx/speed.c
  33. 1 0
      arch/powerpc/cpu/mpc8xx/speed.c
  34. 1 0
      board/Arcturus/ucp1020/spl.c
  35. 1 0
      board/compulab/cm_fx6/spl.c
  36. 1 0
      board/freescale/b4860qds/spl.c
  37. 1 0
      board/freescale/c29xpcie/spl.c
  38. 1 0
      board/freescale/ls1021aiot/ls1021aiot.c
  39. 1 0
      board/freescale/ls1021aqds/ls1021aqds.c
  40. 1 0
      board/freescale/ls1021atsn/ls1021atsn.c
  41. 1 0
      board/freescale/ls1021atwr/ls1021atwr.c
  42. 1 0
      board/freescale/lx2160a/lx2160a.c
  43. 1 0
      board/freescale/mpc8313erdb/mpc8313erdb.c
  44. 1 0
      board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
  45. 1 0
      board/freescale/p1010rdb/spl.c
  46. 1 0
      board/freescale/p1022ds/diu.c
  47. 1 0
      board/freescale/p1022ds/spl.c
  48. 1 0
      board/freescale/p1_p2_rdb_pc/spl.c
  49. 2 2
      board/freescale/qemu-ppce500/qemu-ppce500.c
  50. 1 0
      board/freescale/t102xqds/spl.c
  51. 1 0
      board/freescale/t102xrdb/spl.c
  52. 1 0
      board/freescale/t1040qds/diu.c
  53. 1 0
      board/freescale/t104xrdb/diu.c
  54. 1 0
      board/freescale/t104xrdb/spl.c
  55. 1 0
      board/freescale/t208xqds/spl.c
  56. 1 0
      board/freescale/t208xrdb/spl.c
  57. 1 0
      board/freescale/t4qds/spl.c
  58. 1 0
      board/freescale/t4rdb/spl.c
  59. 1 0
      board/gdsys/p1022/diu.c
  60. 1 0
      board/kosagi/novena/novena_spl.c
  61. 1 0
      board/socrates/socrates.c
  62. 1 0
      common/board_f.c
  63. 1 0
      drivers/clk/mpc83xx_clk.c
  64. 1 0
      drivers/net/ag7xxx.c
  65. 1 0
      drivers/serial/lpc32xx_hsuart.c
  66. 1 0
      drivers/serial/ns16550.c
  67. 1 0
      drivers/serial/serial_ar933x.c
  68. 1 0
      drivers/serial/serial_ns16550.c
  69. 1 0
      drivers/spi/ath79_spi.c
  70. 14 0
      include/clock_legacy.h
  71. 0 5
      include/common.h

+ 1 - 0
arch/arm/cpu/arm1136/mx35/generic.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <div64.h>
 #include <asm/io.h>
 #include <linux/errno.h>

+ 1 - 0
arch/arm/cpu/arm926ejs/lpc32xx/clk.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <div64.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>

+ 1 - 0
arch/arm/cpu/arm926ejs/mx25/generic.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <div64.h>
 #include <netdev.h>
 #include <vsprintf.h>

+ 1 - 0
arch/arm/cpu/armv7/ls102xa/clock.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>

+ 1 - 0
arch/arm/cpu/armv7/ls102xa/fdt.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/io.h>

+ 1 - 0
arch/arm/cpu/armv7/vf610/generic.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/fdt.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <efi_loader.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <linux/compiler.h>
 #include <asm/io.h>

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <linux/compiler.h>
 #include <fsl_ifc.h>

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/soc.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <fsl_immap.h>
 #include <fsl_ifc.h>

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/spl.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <spl.h>

+ 1 - 0
arch/arm/cpu/armv8/s32v234/generic.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>

+ 1 - 0
arch/arm/mach-imx/mx7/clock.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <div64.h>
 #include <asm/io.h>
 #include <linux/errno.h>

+ 1 - 0
arch/arm/mach-imx/mx7ulp/clock.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <div64.h>
 #include <asm/io.h>
 #include <errno.h>

+ 1 - 0
arch/arm/mach-imx/speed.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 

+ 1 - 0
arch/m68k/cpu/mcf5227x/speed.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 
 #include <asm/immap.h>

+ 1 - 0
arch/m68k/cpu/mcf523x/speed.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 
 #include <asm/immap.h>

+ 2 - 1
arch/m68k/cpu/mcf52x2/speed.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 #include <asm/immap.h>
 #include <asm/io.h>
@@ -15,7 +16,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
-int get_clocks (void)
+int get_clocks(void)
 {
 #if defined(CONFIG_M5208)
 	pll_t *pll = (pll_t *) MMAP_PLL;

+ 1 - 0
arch/m68k/cpu/mcf530x/speed.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 #include <asm/immap.h>
 

+ 1 - 0
arch/m68k/cpu/mcf532x/speed.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 
 #include <asm/immap.h>

+ 1 - 0
arch/m68k/cpu/mcf5445x/speed.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 
 #include <asm/immap.h>

+ 1 - 0
arch/m68k/cpu/mcf547x_8x/speed.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/processor.h>
 
 #include <asm/immap.h>

+ 1 - 0
arch/mips/mach-ath79/ar933x/clk.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>

+ 1 - 0
arch/mips/mach-ath79/ar934x/clk.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>

+ 1 - 0
arch/mips/mach-ath79/qca953x/clk.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>

+ 1 - 0
arch/mips/mach-ath79/qca956x/clk.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>

+ 1 - 0
arch/powerpc/cpu/mpc83xx/fdt.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/processor.h>

+ 1 - 0
arch/powerpc/cpu/mpc83xx/speed.c

@@ -9,6 +9,7 @@
 #ifndef CONFIG_CLK_MPC83XX
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <mpc83xx.h>
 #include <command.h>
 #include <vsprintf.h>

+ 1 - 0
arch/powerpc/cpu/mpc83xx/spl_minimal.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <mpc83xx.h>
 
 #include "lblaw/lblaw.h"

+ 1 - 0
arch/powerpc/cpu/mpc85xx/fdt.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>

+ 2 - 3
arch/powerpc/cpu/mpc85xx/speed.c

@@ -574,8 +574,7 @@ void get_sys_info(sys_info_t *sys_info)
 #endif
 }
 
-
-int get_clocks (void)
+int get_clocks(void)
 {
 	sys_info_t sys_info;
 #ifdef CONFIG_ARCH_MPC8544
@@ -653,7 +652,7 @@ int get_clocks (void)
  * get_bus_freq
  * return system bus freq in Hz
  *********************************************/
-ulong get_bus_freq (ulong dummy)
+ulong get_bus_freq(ulong dummy)
 {
 	return gd->bus_clk;
 }

+ 1 - 0
arch/powerpc/cpu/mpc86xx/speed.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <mpc86xx.h>
 #include <asm/processor.h>
 #include <asm/io.h>

+ 1 - 0
arch/powerpc/cpu/mpc8xx/speed.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <mpc8xx.h>
 #include <asm/processor.h>
 #include <asm/io.h>

+ 1 - 0
board/Arcturus/ucp1020/spl.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>

+ 1 - 0
board/compulab/cm_fx6/spl.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/gpio.h>

+ 1 - 0
board/freescale/b4860qds/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>

+ 1 - 0
board/freescale/c29xpcie/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/ls1021aiot/ls1021aiot.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
 #include <asm/arch/immap_ls102xa.h>

+ 1 - 0
board/freescale/ls1021aqds/ls1021aqds.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <fdt_support.h>
 #include <i2c.h>
 #include <init.h>

+ 1 - 0
board/freescale/ls1021atsn/ls1021atsn.c

@@ -2,6 +2,7 @@
 /* Copyright 2016-2019 NXP Semiconductors
  */
 #include <common.h>
+#include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
 #include <asm/arch-ls102xa/ls102xa_soc.h>

+ 1 - 0
board/freescale/ls1021atwr/ls1021atwr.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <fdt_support.h>
 #include <i2c.h>
 #include <init.h>

+ 1 - 0
board/freescale/lx2160a/lx2160a.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <i2c.h>

+ 1 - 0
board/freescale/mpc8313erdb/mpc8313erdb.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
 #if defined(CONFIG_OF_LIBFDT)

+ 1 - 0
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <asm/io.h>
 #include <fsl_diu_fb.h>

+ 1 - 0
board/freescale/p1010rdb/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>

+ 1 - 0
board/freescale/p1022ds/diu.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <linux/ctype.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/p1022ds/spl.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>

+ 1 - 0
board/freescale/p1_p2_rdb_pc/spl.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>

+ 2 - 2
board/freescale/qemu-ppce500/qemu-ppce500.c

@@ -323,7 +323,7 @@ void get_sys_info(sys_info_t *sys_info)
 	sys_info->freq_processor[0] = freq;
 }
 
-int get_clocks (void)
+int get_clocks(void)
 {
 	sys_info_t sys_info;
 
@@ -350,7 +350,7 @@ unsigned long get_tbclk (void)
  * get_bus_freq
  * return system bus freq in Hz
  *********************************************/
-ulong get_bus_freq (ulong dummy)
+ulong get_bus_freq(ulong dummy)
 {
 	sys_info_t sys_info;
 	get_sys_info(&sys_info);

+ 1 - 0
board/freescale/t102xqds/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t102xrdb/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t1040qds/diu.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <linux/ctype.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/t104xrdb/diu.c

@@ -4,6 +4,7 @@
  * Author: Priyanka Jain <Priyanka.Jain@freescale.com>
  */
 
+#include <clock_legacy.h>
 #include <asm/io.h>
 #include <common.h>
 #include <command.h>

+ 1 - 0
board/freescale/t104xrdb/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t208xqds/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t208xrdb/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t4qds/spl.c

@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/freescale/t4rdb/spl.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>

+ 1 - 0
board/gdsys/p1022/diu.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <linux/ctype.h>
 #include <asm/io.h>

+ 1 - 0
board/kosagi/novena/novena_spl.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>

+ 1 - 0
board/socrates/socrates.c

@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <pci.h>
 #include <asm/processor.h>

+ 1 - 0
common/board_f.c

@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <bloblist.h>
+#include <clock_legacy.h>
 #include <console.h>
 #include <cpu.h>
 #include <cpu_func.h>

+ 1 - 0
drivers/clk/mpc83xx_clk.c

@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <clk-uclass.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <vsprintf.h>
 #include <dm/lists.h>

+ 1 - 0
drivers/net/ag7xxx.c

@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>

+ 1 - 0
drivers/serial/lpc32xx_hsuart.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <serial.h>
 #include <dm/platform_data/lpc32xx_hsuart.h>

+ 1 - 0
drivers/serial/ns16550.c

@@ -4,6 +4,7 @@
  * modified to use CONFIG_SYS_ISA_MEM and new defines
  */
 
+#include <clock_legacy.h>
 #include <common.h>
 #include <clk.h>
 #include <dm.h>

+ 1 - 0
drivers/serial/serial_ar933x.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>

+ 1 - 0
drivers/serial/serial_ns16550.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <ns16550.h>
 #include <serial.h>
 #include <linux/compiler.h>

+ 1 - 0
drivers/spi/ath79_spi.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <spi.h>
 #include <dm.h>
 #include <div64.h>

+ 14 - 0
include/clock_legacy.h

@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ */
+
+#ifndef __CLOCK_LEGACY_H
+#define __CLOCK_LEGACY_H
+
+int get_clocks(void);
+unsigned long get_bus_freq(unsigned long dummy);
+int get_serial_clock(void);
+
+#endif

+ 0 - 5
include/common.h

@@ -78,11 +78,6 @@ ulong	get_tbclk     (void);
 void	reset_misc    (void);
 void	reset_cpu     (ulong addr);
 
-/* $(CPU)/speed.c */
-int	get_clocks (void);
-ulong	get_bus_freq  (ulong);
-int get_serial_clock(void);
-
 /* lib/uuid.c */
 #include <uuid.h>