summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-03 07:59:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-08-03 15:50:01 +0200
commitbbe683b1e4ef31a6300f3ab84ce25dbb04567cba (patch)
tree59f8316dc4bfbeab3861df0b234d79e94333e9bb /arch/arm/include
parentb6240f08fbc03909e07476eab4cc545d6d17ea73 (diff)
downloadbarebox-bbe683b1e4ef31a6300f3ab84ce25dbb04567cba.tar.gz
barebox-bbe683b1e4ef31a6300f3ab84ce25dbb04567cba.tar.xz
arm introduce CONFIG_MACH_ARM_HEAD option to allow custom head
This is needed by at91 to specify the size of the binary to load from the bootrom when booting for non nor flash. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/barebox-arm-head.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox-arm-head.h b/arch/arm/include/asm/barebox-arm-head.h
index 2c250e948e..0b1d78644d 100644
--- a/arch/arm/include/asm/barebox-arm-head.h
+++ b/arch/arm/include/asm/barebox-arm-head.h
@@ -1,6 +1,9 @@
#ifndef __ASM_ARM_HEAD_H
#define __ASM_ARM_HEAD_H
+#ifdef CONFIG_HAVE_MACH_ARM_HEAD
+#include <mach/barebox-arm-head.h>
+#else
static inline void barebox_arm_head(void)
{
__asm__ __volatile__ (
@@ -31,5 +34,6 @@ static inline void barebox_arm_head(void)
".word _barebox_image_size\n" /* image size to copy */
);
}
+#endif
#endif /* __ASM_ARM_HEAD_H */