diff options
author | Tom Rini <trini@konsulko.com> | 2023-01-10 11:19:39 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-20 12:27:06 -0500 |
commit | 80c75ce00d35778681e1f27b5c95e365b0fb8c7c (patch) | |
tree | 697501ed00273cd1973438bcba661d6f59ccca73 /arch/arm/cpu | |
parent | 8de73b7bc13fde6a469328891713b89f5cb15c8b (diff) | |
download | u-boot-80c75ce00d35778681e1f27b5c95e365b0fb8c7c.zip u-boot-80c75ce00d35778681e1f27b5c95e365b0fb8c7c.tar.gz u-boot-80c75ce00d35778681e1f27b5c95e365b0fb8c7c.tar.bz2 |
fsl-layerscape: Rework usage of CONFIG_CLUSTER_CLK_FREQ
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>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c index f18407b..4455eb1 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c @@ -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(); |