nds32: Make u-boot-nds32.h a private header
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:22:52 +0000 (08:22 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 15:02:33 +0000 (11:02 -0400)
Rather than including this arch-specific header file in common.h, include
it from within nds32's u-boot.h header.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/nds32/include/asm/u-boot.h
include/common.h

index 2efdeb1243b80bc5437c8d65c0071e26a6d4fd60..4378ebf44b952ca16bd31b9216ae3af3d73be66f 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _U_BOOT_H_
 #define _U_BOOT_H_     1
 
+#include <asm/u-boot-nds32.h>
+
 #include <environment.h>
 
 typedef struct bd_info {
index f36fed3843c65f1e4887c48567acc0420425bfb9..c1e634045f03473eea2a86dce951259b574e46f8 100644 (file)
@@ -439,7 +439,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
 #ifdef CONFIG_NDS32
 # include <asm/mach-types.h>
 # include <asm/setup.h>
-# include <asm/u-boot-nds32.h>
+# include <asm/u-boot.h>
 #endif /* CONFIG_NDS32 */
 #ifdef CONFIG_MIPS
 # include <asm/u-boot.h>