]> git.sur5r.net Git - u-boot/commitdiff
ARM: boot0 hook: remove macro, include whole header file
authorAndre Przywara <andre.przywara@arm.com>
Mon, 2 Jan 2017 11:48:34 +0000 (11:48 +0000)
committerJagan Teki <jagan@openedev.com>
Wed, 4 Jan 2017 15:37:41 +0000 (16:37 +0100)
For prepending some board specific header area to U-Boot images we
were so far including a header file with a macro definition containing
the actual header specification.
This works fine if there are just a few statements and if there is only
one alternative.
However adding more complex code quickly gets messy with this approach,
so let's just drop that intermediate macro and let the #include actually
insert the code directly.
This converts the callers and the callees, but doesn't change anything
at this point.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Steve Rae <steve.rae@raedomain.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/cpu/armv8/start.S
arch/arm/include/asm/arch-bcm235xx/boot0.h
arch/arm/include/asm/arch-bcm281xx/boot0.h
arch/arm/include/asm/arch-sunxi/boot0.h
arch/arm/lib/vectors.S

index ee393d737e5c0aeeb592459ac0bf0c157c3c9aef..140609de089294594fad647beea8a2dc8996ad1f 100644 (file)
@@ -26,7 +26,6 @@ _start:
  * use it here.
  */
 #include <asm/arch/boot0.h>
-ARM_SOC_BOOT0_HOOK
 #else
        b       reset
 #endif
index 7e7288272513d208a119e0cd18fd12d861f1b508..a747bd38233233898552f8a134d67af7f1ee8bd9 100644 (file)
@@ -4,12 +4,6 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef __BOOT0_H
-#define __BOOT0_H
-
 /* BOOT0 header information */
-#define ARM_SOC_BOOT0_HOOK     \
-       .word   0xbabeface;     \
+       .word   0xbabeface
        .word   _end - _start
-
-#endif /* __BOOT0_H */
index 7e7288272513d208a119e0cd18fd12d861f1b508..a747bd38233233898552f8a134d67af7f1ee8bd9 100644 (file)
@@ -4,12 +4,6 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef __BOOT0_H
-#define __BOOT0_H
-
 /* BOOT0 header information */
-#define ARM_SOC_BOOT0_HOOK     \
-       .word   0xbabeface;     \
+       .word   0xbabeface
        .word   _end - _start
-
-#endif /* __BOOT0_H */
index 6f28d63d48bb59eb632d0c3b59e4d9bd77c29bf2..6a13db5222ab136a91a77333e3bdd7c695e85d92 100644 (file)
@@ -4,12 +4,6 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef __BOOT0_H
-#define __BOOT0_H
-
 /* reserve space for BOOT0 header information */
-#define ARM_SOC_BOOT0_HOOK     \
-       b       reset;          \
+       b       reset
        .space  1532
-
-#endif /* __BOOT0_H */
index 5cc132b7b844c5324dbdc0122a0bb0cb98aabcef..9fe7415b66c7ec64b7657b6595633dba909d1c49 100644 (file)
@@ -67,7 +67,6 @@ _start:
  * use it here.
  */
 #include <asm/arch/boot0.h>
-ARM_SOC_BOOT0_HOOK
 #endif
 
 /*