Browse Source

mips: Make u-boot-mips.h a private header

Rather than including this arch-specific header file in common.h, include
it from within mips's u-boot.h header.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Simon Glass 8 năm trước cách đây
mục cha
commit
a320acc419

+ 1 - 0
arch/mips/include/asm/u-boot.h

@@ -17,6 +17,7 @@
 
 
 /* Use the generic board which requires a unified bd_info */
 /* Use the generic board which requires a unified bd_info */
 #include <asm-generic/u-boot.h>
 #include <asm-generic/u-boot.h>
+#include <asm/u-boot-mips.h>
 
 
 /* For image.h:image_check_target_arch() */
 /* For image.h:image_check_target_arch() */
 #define IH_ARCH_DEFAULT IH_ARCH_MIPS
 #define IH_ARCH_DEFAULT IH_ARCH_MIPS

+ 1 - 1
include/common.h

@@ -442,7 +442,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
 # include <asm/u-boot-nds32.h>
 # include <asm/u-boot-nds32.h>
 #endif /* CONFIG_NDS32 */
 #endif /* CONFIG_NDS32 */
 #ifdef CONFIG_MIPS
 #ifdef CONFIG_MIPS
-# include <asm/u-boot-mips.h>
+# include <asm/u-boot.h>
 #endif /* CONFIG_MIPS */
 #endif /* CONFIG_MIPS */
 #ifdef CONFIG_ARC
 #ifdef CONFIG_ARC
 # include <asm/u-boot.h>
 # include <asm/u-boot.h>