]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
m68k: Rework asm/global_data.h slightly
authorTom Rini <trini@konsulko.com>
Thu, 14 Dec 2023 18:16:51 +0000 (13:16 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 13:54:37 +0000 (08:54 -0500)
In the architecture global data, replace the one case of u32 with
unsigned long. Now, we can drop config.h here but then do need to add it
in two m68k-centric spaces.

Acked-by: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/m68k/include/asm/cache.h
arch/m68k/include/asm/global_data.h
arch/m68k/lib/traps.c

index 8ed2b4dbab47609c093b2ef1b35af4c360975429..6ef7f7be1af8f938a708359dc9c732378a314337 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CACHE_H
 #define __CACHE_H
 
+#include <config.h>
+
 #if defined(CONFIG_MCF520x) || defined(CONFIG_MCF523x) || \
     defined(CONFIG_MCF52x2)
 #define CFG_CF_V2
index 5f576ba16f9adce3ff8054d2a3c32007297ad7dc..c2ef5770a3dfdf924397894962be13e2a4bfa392 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef        __ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
-#include <config.h>
-
 /* Architecture-specific global data */
 struct arch_global_data {
 #ifdef CONFIG_SYS_I2C_FSL
@@ -24,7 +22,7 @@ struct arch_global_data {
        unsigned long sdhc_clk;
 #endif
 #if defined(CONFIG_FSL_ESDHC)
-       u32 sdhc_per_clk;
+       unsigned long sdhc_per_clk;
 #endif
 };
 
index c283351181d8ea3027b5fc388c5c86f9c3a8cb92..2a025c5a6e868672e6043ab71627437ce0d5ad10 100644 (file)
@@ -7,6 +7,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
+#include <config.h>
 #include <init.h>
 #include <watchdog.h>
 #include <command.h>