From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Tue, 7 Jun 2016 00:57:07 +0200 Subject: [U-Boot] [PATCH v2 5/5] bcm2835: Reserve the spin table in efi memory map In-Reply-To: <1465253827-126767-1-git-send-email-agraf@suse.de> References: <1465253827-126767-1-git-send-email-agraf@suse.de> Message-ID: <1465253827-126767-6-git-send-email-agraf@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.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 --- 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 c45ddb1..a2336fc 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -480,5 +481,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