forked from pool/u-boot
c5a1053428
1 OBS-URL: https://build.opensuse.org/request/show/405463 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=76
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
From bc8cf1317fd2b4301a74d00ee47d7d577b77fcdf Mon Sep 17 00:00:00 2001
|
|
From: Alexander Graf <agraf@suse.de>
|
|
Date: Mon, 6 Jun 2016 23:55:33 +0200
|
|
Subject: [PATCH] bcm2835: Reserve the spin table in efi memory map
|
|
|
|
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 c45ddb1..a2336fc 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>
|
|
@@ -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;
|
|
}
|