]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES
authorKyle Evans <kevans@FreeBSD.org>
Wed, 26 Feb 2020 21:39:10 +0000 (15:39 -0600)
committerMatthias Brugger <mbrugger@suse.com>
Wed, 13 May 2020 12:04:50 +0000 (14:04 +0200)
Some systems may use a slightly larger stub to do PSCI for booting the RPi
family.  The number of pages has been made configurable so that operating
systems building U-Boot for use in these kinds of environments can reserve
more memory in the EFI memory map.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
board/raspberrypi/rpi/rpi.c

index e367ba3092458f7b3bdbb75573999c530cf6b72b..0206a093d4270275595da8fcee5291ccf7245080 100644 (file)
@@ -489,7 +489,8 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 #ifdef CONFIG_EFI_LOADER
        /* Reserve the spin table */
-       efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
+       efi_add_memory_map(0, CONFIG_RPI_EFI_NR_SPIN_PAGES,
+                          EFI_RESERVED_MEMORY_TYPE, 0);
 #endif
 
        return 0;