U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/3] bcm2835: Reserve the spin table in efi memory map
Date: Wed,  2 Nov 2016 10:36:20 +0100	[thread overview]
Message-ID: <1478079380-176304-4-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1478079380-176304-1-git-send-email-agraf@suse.de>

Firmware provides a spin table on the raspberry pi. This table shouldn't
get overwritten by payloads, so we need to mark it as reserved.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 board/raspberrypi/rpi/rpi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 6245b36..7f057e1 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -8,6 +8,7 @@
 #include <inttypes.h>
 #include <config.h>
 #include <dm.h>
+#include <efi_loader.h>
 #include <fdt_support.h>
 #include <fdt_simplefb.h>
 #include <lcd.h>
@@ -514,5 +515,10 @@ int ft_board_setup(void *blob, bd_t *bd)
 	 */
 	lcd_dt_simplefb_add_node(blob);
 
+#ifdef CONFIG_EFI_LOADER
+	/* Reserve the spin table */
+	efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
+#endif
+
 	return 0;
 }
-- 
1.8.5.6

  parent reply	other threads:[~2016-11-02  9:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-02  9:36 [U-Boot] [PATCH v3 0/3] Raspberry Pi EFI enablement Alexander Graf
2016-11-02  9:36 ` [U-Boot] [PATCH v3 1/3] ARM: bcm283x: Implement EFI RTS reset_system Alexander Graf
2016-11-06  3:01   ` Stephen Warren
2016-11-06 10:24     ` Alexander Graf
2016-11-08  3:26       ` Stephen Warren
2016-11-09 11:43         ` Alexander Graf
2016-11-09 15:50           ` Stephen Warren
2016-11-09 18:09             ` Alexander Graf
2016-11-06 10:32     ` Alexander Graf
2016-11-29 17:38   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-11-02  9:36 ` [U-Boot] [PATCH v3 2/3] bcm2835 video: Map frame buffer as 32bpp Alexander Graf
2016-11-06  3:04   ` Stephen Warren
2016-11-29 17:39   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-11-02  9:36 ` Alexander Graf [this message]
2016-11-06  3:07   ` [U-Boot] [PATCH v3 3/3] bcm2835: Reserve the spin table in efi memory map Stephen Warren
2016-11-06 10:27     ` Alexander Graf
2016-11-29 18:01   ` [U-Boot] [U-Boot, v3, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1478079380-176304-4-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox