diff mbox

[U-Boot,2/4] arm: bcm235xx: implement the boot0 hook code

Message ID 1466552587-9953-3-git-send-email-srae@broadcom.com
State Accepted
Commit 9d7f416cedb5e9d7a809952e9483e05de5d30eda
Delegated to: Tom Rini
Headers show

Commit Message

Steve Rae June 21, 2016, 11:43 p.m. UTC
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 | 15 +++++++++++++++
 configs/bcm23550_w1d_defconfig             |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-bcm235xx/boot0.h

Comments

Tom Rini June 25, 2016, 2:53 a.m. UTC | #1
On Tue, Jun 21, 2016 at 04:43:05PM -0700, Steve Rae wrote:

> Choose the Kconfig boot0 hook option and implement the required code.
> 
> Signed-off-by: Steve Rae <srae@broadcom.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-bcm235xx/boot0.h b/arch/arm/include/asm/arch-bcm235xx/boot0.h
new file mode 100644
index 0000000..7e72882
--- /dev/null
+++ b/arch/arm/include/asm/arch-bcm235xx/boot0.h
@@ -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 */
diff --git a/configs/bcm23550_w1d_defconfig b/configs/bcm23550_w1d_defconfig
index cd47cd0..0ef4a37 100644
--- a/configs/bcm23550_w1d_defconfig
+++ b/configs/bcm23550_w1d_defconfig
@@ -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