]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsl-layerscape: Rework usage of CONFIG_CLUSTER_CLK_FREQ
authorTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 16:19:39 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2023 17:27:06 +0000 (12:27 -0500)
In the case where CONFIG_CLUSTER_CLK_FREQ is not defined, simply set
cluster_clk to get_board_sys_clk().

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c

index f18407b6d3bb47a1d0ba0d84a45fe2c5d6a49896..4455eb1726dc18d857221500097147f8b89223fa 100644 (file)
@@ -48,10 +48,11 @@ void get_sys_info(struct sys_info *sys_info)
        unsigned long cluster_clk;
 
        sys_info->freq_systembus = sysclk;
-#ifndef CONFIG_CLUSTER_CLK_FREQ
-#define CONFIG_CLUSTER_CLK_FREQ        get_board_sys_clk()
-#endif
+#ifdef CONFIG_CLUSTER_CLK_FREQ
        cluster_clk = CONFIG_CLUSTER_CLK_FREQ;
+#else
+       cluster_clk = get_board_sys_clk();
+#endif
 
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || defined(CONFIG_STATIC_DDR_CLK_FREQ)
        sys_info->freq_ddrbus = get_board_ddr_clk();