diff mbox series

arm: Add arm handoff header file

Message ID 20200105155113.1966-1-michael@amarulasolutions.com
State Accepted
Commit 906e3cc552fbf24f0b2a1b7582c6f761a608de20
Headers show
Series arm: Add arm handoff header file | expand

Commit Message

Michael Trimarchi Jan. 5, 2020, 3:51 p.m. UTC
Add an arch-specific handoff header so that we can use the HANDOFF feature
on arm devices.

Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
---
 arch/arm/include/asm/handoff.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 arch/arm/include/asm/handoff.h

Comments

Simon Glass Jan. 10, 2020, 9:39 a.m. UTC | #1
On Mon, 6 Jan 2020 at 04:51, Michael Trimarchi
<michael at amarulasolutions.com> wrote:
>
> Add an arch-specific handoff header so that we can use the HANDOFF feature
> on arm devices.
>
> Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
> ---
>  arch/arm/include/asm/handoff.h | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>  create mode 100644 arch/arm/include/asm/handoff.h

Reviewed-by: Simon Glass <sjg at chromium.org>
Tom Rini Jan. 25, 2020, 5:08 p.m. UTC | #2
On Sun, Jan 05, 2020 at 04:51:13PM +0100, Michael Trimarchi wrote:

> Add an arch-specific handoff header so that we can use the HANDOFF feature
> on arm devices.
> 
> Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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

Patch

diff --git a/arch/arm/include/asm/handoff.h b/arch/arm/include/asm/handoff.h
new file mode 100644
index 0000000000..0790d2ab1e
--- /dev/null
+++ b/arch/arm/include/asm/handoff.h
@@ -0,0 +1,21 @@ 
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Architecture-specific SPL handoff information for ARM
+ *
+ * Copyright 2019 Amarula Solutions, BV
+ * Written by Michael Trimarchi <michael at amarulasolutions.com>
+ */
+
+#ifndef __asm_handoff_h
+#define __asm_handoff_h
+
+/**
+ * struct arch_spl_handoff - architecture-specific handoff info
+ *
+ * @usable_ram_top: Value returned by board_get_usable_ram_top() in SPL
+ */
+struct arch_spl_handoff {
+	ulong usable_ram_top;
+};
+
+#endif