]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Add global variable sdhc_per_clk for arm/powerpc
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 19 Dec 2019 10:59:28 +0000 (18:59 +0800)
committerPeng Fan <peng.fan@nxp.com>
Thu, 16 Jan 2020 05:16:26 +0000 (13:16 +0800)
The QorIQ 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.
This patch is to add another global variable sdhc_per_clk for
periperhal clock, which provides higher frequency and is required
to be used for SD UHS and eMMC HS200/HS400 speed modes.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
arch/arm/include/asm/global_data.h
arch/powerpc/include/asm/global_data.h

index 17740147eafc3e9cc65776293b472b0ec8c717d8..f23b6bfb75b99a79e0e343bbcdf015567cda1ca1 100644 (file)
@@ -13,6 +13,10 @@ struct arch_global_data {
        u32 sdhc_clk;
 #endif
 
+#if defined(CONFIG_FSL_ESDHC)
+       u32 sdhc_per_clk;
+#endif
+
 #if defined(CONFIG_U_QE)
        u32 qe_clk;
        u32 brg_clk;
index b6e4dd6c807c230d8fbfb7c5c80c2462660a2975..1620fba0143419baf8703bad874375cde2fd357b 100644 (file)
@@ -14,6 +14,7 @@
 struct arch_global_data {
 #if defined(CONFIG_FSL_ESDHC)
        u32 sdhc_clk;
+       u32 sdhc_per_clk;
 #if defined(CONFIG_FSL_ESDHC_ADAPTER_IDENT)
        u8 sdhc_adapter;
 #endif