]> git.sur5r.net Git - u-boot/commitdiff
arm: Make u-boot-arm.h a private header
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:22:50 +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 arm's u-boot.h header.

Also drop the comment about something to be fixed. It has been there
forever and it is not clear what it means.

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

index b931c22060ec823201ff5d230367de526f3271fa..3a0d0b8675a0227e4331842703607a33b0b24c8a 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _U_BOOT_ARM_H_
 #define _U_BOOT_ARM_H_ 1
 
+#ifndef __ASSEMBLY__
+
 /* for the following variables, see start.S */
 extern ulong IRQ_STACK_START;  /* top of IRQ stack */
 extern ulong FIQ_STACK_START;  /* top of FIQ stack */
@@ -59,4 +61,6 @@ void do_fiq(struct pt_regs *pt_regs);
 void do_irq(struct pt_regs *pt_regswq);
 #endif
 
+#endif /* __ASSEMBLY__ */
+
 #endif /* _U_BOOT_ARM_H_ */
index ca3abd7d0bbc9f5517c1b10501b0fe2700e6bdb3..ef9196f898b9876503d19b584fc6207685bd1035 100644 (file)
@@ -22,6 +22,7 @@
 
 /* Use the generic board which requires a unified bd_info */
 #include <asm-generic/u-boot.h>
+#include <asm/u-boot-arm.h>
 
 /* For image.h:image_check_target_arch() */
 #ifndef CONFIG_ARM64
index 229ca4c3976fed7939d50bf533d4fdd51b6bf92c..fe396c57052cfd6271d7969afae875e6edd44b7b 100644 (file)
@@ -428,7 +428,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
 #ifdef CONFIG_ARM
 # include <asm/mach-types.h>
 # include <asm/setup.h>
-# include <asm/u-boot-arm.h>   /* ARM version to be fixed! */
+# include <asm/u-boot.h>
 #endif /* CONFIG_ARM */
 #ifdef CONFIG_X86
 # include <asm/u-boot.h>