summaryrefslogtreecommitdiff
path: root/board/raspberrypi/rpi/rpi.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-11-02 10:36:20 +0100
committerTom Rini <trini@konsulko.com>2016-11-28 20:15:20 -0500
commit1bcf7a30d81b0f770cb217dedef8e4034da9d87d (patch)
tree0cb7aaa726b95c6c84ab886792d7832ba8a0c5b0 /board/raspberrypi/rpi/rpi.c
parent8b82dd9adde852dd506af39dc74ddc59f5295cb7 (diff)
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> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'board/raspberrypi/rpi/rpi.c')
-rw-r--r--board/raspberrypi/rpi/rpi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 04f27b4b8f..22e87a2a13 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>
@@ -518,5 +519,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;
}