4a8c51668e
- Added support for DE0-Nanos-SoC board - Updated to v2016.11 - Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2016.11 to fix build of Raspberry Pi 1, 2 and 3 - Updated to v2016.11-rc3 - Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2016.11 * Patches dropped: 0004-efi_loader-Allow-boards-to-implemen.patch 0005-ARM-bcm283x-Implement-EFI-RTS-reset.patch 0006-efi_loader-gop-Expose-fb-when-32bpp.patch 0007-bcm2835-video-Map-frame-buffer-as-3.patch 0008-bcm2835-Reserve-the-spin-table-in-e.patch 0009-x86-Move-table-csum-into-separate-h.patch 0010-x86-Move-smbios-generation-into-arc.patch 0011-efi_loader-Expose-efi_install_confi.patch 0012-smbios-Allow-compilation-on-64bit-s.patch 0013-smbios-Expose-in-efi_loader-as-tabl.patch 0014-efi_loader-Fix-efi_install_configur.patch 0015-smbios-Provide-serial-number.patch 0016-efi_loader-Update-description-of-in.patch 0017-efi_loader-Fix-memory-map-size-chec.patch 0018-efi_loader-Fix-crash-on-32-bit-syst.patch 0019-efi_loader-Move-efi_allocate_pool-i.patch 0020-efi_loader-Track-size-of-pool-alloc.patch 0021-efi_loader-Readd-freed-pages-to-mem.patch 0022-efi_loader-Keep-memory-mapping-sort.patch 0023-efi_loader-Do-not-leak-memory-when-.patch OBS-URL: https://build.opensuse.org/request/show/448523 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=83
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
From ae0952b5b992edf32cd9bb837257e019aca1d67d 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 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;
|
|
}
|