]> git.baikalelectronics.ru Git - uboot.git/commitdiff
m68k: add global variable sdhc_per_clk for m68k
authorAngelo Dureghello <angelo@kernel-space.org>
Tue, 7 Feb 2023 20:28:00 +0000 (21:28 +0100)
committerAngelo Dureghello <angelo@kernel-space.org>
Wed, 15 Mar 2023 00:38:19 +0000 (01:38 +0100)
The FSL eSDHC controller supports two reference clocks. They are
platform clock and periperhal clock. The global variable sdhc_clk
has already been used for platform clock.
ColdFire also uses eSHDC controller, as in arm and powerpc,
so adding sdhc_per_clk to arch_global_data.

Signed-off-by: Angelo Durgehello <angelo@kernel-space.org>
arch/m68k/include/asm/global_data.h

index 273e843c4ae6c152fbad661431593eab82bbaaa6..5f576ba16f9adce3ff8054d2a3c32007297ad7dc 100644 (file)
@@ -23,6 +23,9 @@ struct arch_global_data {
 #ifdef CONFIG_MCF5441x
        unsigned long sdhc_clk;
 #endif
+#if defined(CONFIG_FSL_ESDHC)
+       u32 sdhc_per_clk;
+#endif
 };
 
 #include <asm-generic/global_data.h>