[PATCH] m68k: add global variable sdhc_per_clk for m68k

Angelo Dureghello angelo.dureghello at timesys.com
Tue Feb 7 21:55:55 CET 2023


From: Angelo Durgehello <angelo at kernel-space.org>

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 at kernel-space.org>
---
 arch/m68k/include/asm/global_data.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/asm/global_data.h
index 273e843c4a..5f576ba16f 100644
--- a/arch/m68k/include/asm/global_data.h
+++ b/arch/m68k/include/asm/global_data.h
@@ -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>
-- 
2.39.1



More information about the U-Boot mailing list