]> git.sur5r.net Git - u-boot/commitdiff
arm: bcm235xx: implement the boot0 hook code
authorSteve Rae <srae@broadcom.com>
Tue, 21 Jun 2016 23:43:05 +0000 (16:43 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jun 2016 21:24:37 +0000 (17:24 -0400)
Choose the Kconfig boot0 hook option and implement the required code.

Signed-off-by: Steve Rae <srae@broadcom.com>
arch/arm/include/asm/arch-bcm235xx/boot0.h [new file with mode: 0644]
configs/bcm23550_w1d_defconfig

diff --git a/arch/arm/include/asm/arch-bcm235xx/boot0.h b/arch/arm/include/asm/arch-bcm235xx/boot0.h
new file mode 100644 (file)
index 0000000..7e72882
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2016 Broadcom Corporation.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __BOOT0_H
+#define __BOOT0_H
+
+/* BOOT0 header information */
+#define ARM_SOC_BOOT0_HOOK     \
+       .word   0xbabeface;     \
+       .word   _end - _start
+
+#endif /* __BOOT0_H */
index cd47cd05be5a4cec5a31ceb833900f3b0d641654..0ef4a37e5cb956e526f8ca4b1253fb3e529f30fc 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
 CONFIG_TARGET_BCM23550_W1D=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y