rpi: Kconfig option for initial page reservation
authorKyle Evans <kevans@FreeBSD.org>
Wed, 26 Feb 2020 21:37:13 +0000 (15:37 -0600)
committerMatthias Brugger <mbrugger@suse.com>
Wed, 13 May 2020 12:04:49 +0000 (14:04 +0200)
While the nearly-universal default for the Raspberry Pi family is to use
spin tables and the spin table implementation provided by the Raspberry Pi
Foundation, FreeBSD and others may use a PSCI implementation instead.

Accommodate these setups by allowing them to configure for more than one
page to be reserved in the initial reservation.  The default reservation
remains as one page.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
arch/arm/mach-bcm283x/Kconfig
board/raspberrypi/rpi/Kconfig [new file with mode: 0644]

index 00419bf25495237093b2f67db02b3aa9ff9e84f1..e6eb904e7f9f4a2bf5a3a6e863b83429400e6218 100644 (file)
@@ -209,4 +209,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "rpi"
 
+source "board/raspberrypi/rpi/Kconfig"
+
 endmenu
diff --git a/board/raspberrypi/rpi/Kconfig b/board/raspberrypi/rpi/Kconfig
new file mode 100644 (file)
index 0000000..e40088f
--- /dev/null
@@ -0,0 +1,10 @@
+if SYS_BOARD = "rpi"
+
+config RPI_EFI_NR_SPIN_PAGES
+       int "Spin table page count"
+       default 1
+       help
+         Number of pages to reserve starting at page 0 for spin tables in the EFI
+         memory map
+
+endif