]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: Move cm_get_mpu_clk_hz function declaration to clock_manager.h
authorSiew Chin Lim <elly.siew.chin.lim@intel.com>
Tue, 10 Aug 2021 03:26:33 +0000 (11:26 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 25 Aug 2021 05:31:40 +0000 (13:31 +0800)
Move cm_get_mpu_clk_hz function declaration from individual device's
clock manager header file to common clock_manager.h.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
arch/arm/mach-socfpga/include/mach/clock_manager.h
arch/arm/mach-socfpga/include/mach/clock_manager_agilex.h
arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h
arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h
arch/arm/mach-socfpga/include/mach/clock_manager_s10.h

index 2f9b471af3197595bf00b5b7fe281970e00a5d31..d0b172a30ec5131f1b565024ea99e96d3b755405 100644 (file)
@@ -12,6 +12,7 @@ phys_addr_t socfpga_get_clkmgr_addr(void);
 void cm_wait_for_lock(u32 mask);
 int cm_wait_for_fsm(void);
 void cm_print_clock_quick_summary(void);
+unsigned long cm_get_mpu_clk_hz(void);
 unsigned int cm_get_qspi_controller_clk_hz(void);
 
 #if defined(CONFIG_TARGET_SOCFPGA_SOC64)
index 386e82a4e32c2d4db60c7f744f9140542d0c634d..4feae3dda9d38a3941aa719e42f44759dfd2d6b0 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _CLOCK_MANAGER_AGILEX_
 #define _CLOCK_MANAGER_AGILEX_
 
-unsigned long cm_get_mpu_clk_hz(void);
-
 #include <asm/arch/clock_manager_soc64.h>
 #include "../../../../../drivers/clk/altera/clk-agilex.h"
 
index 798d3741bd982341b4def2666476f5e700a4104c..553ebe660dee3fa0f1480a651b9c8b0e8d4c46f5 100644 (file)
@@ -68,7 +68,6 @@ int cm_basic_init(const void *blob);
 
 #include <linux/bitops.h>
 unsigned int cm_get_l4_sp_clk_hz(void);
-unsigned long cm_get_mpu_clk_hz(void);
 
 #endif /* __ASSEMBLY__ */
 
index 4cc1268b4c4d75bbb995d77f12e705e6628369ea..d53095a7da90c4327f4e8693ca2bc9bf52a49b6f 100644 (file)
@@ -96,7 +96,6 @@ struct cm_config {
 #define CLKMGR_PERPLL_EN                       CLKMGR_GEN5_PERPLL_EN
 
 /* Clock speed accessors */
-unsigned long cm_get_mpu_clk_hz(void);
 unsigned long cm_get_sdram_clk_hz(void);
 unsigned int cm_get_l4_sp_clk_hz(void);
 unsigned int cm_get_mmc_controller_clk_hz(void);
index 98c3bf1b03e1bf764bbf1303eed88b7f7199e70c..7f10296dc74db3e3848756d4f5c0e91e5d6baa74 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/bitops.h>
 
 /* Clock speed accessors */
-unsigned long cm_get_mpu_clk_hz(void);
 unsigned long cm_get_sdram_clk_hz(void);
 unsigned int cm_get_l4_sp_clk_hz(void);
 unsigned int cm_get_mmc_controller_clk_hz(void);