You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/10/22 03:40:34 UTC

[incubator-nuttx] 02/09: mpfs: Add configuration flags to configure NuttX booting on single hart

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e5843db28238f31509af276dc6d7737e5712a4c0
Author: Jukka Laitinen <ju...@ssrc.tii.ae>
AuthorDate: Wed May 12 09:02:24 2021 +0300

    mpfs: Add configuration flags to configure NuttX booting on single hart
    
    The bootloader hart also configures the needed clocks and peripherals.
    
    Signed-off-by: Jukka Laitinen <ju...@ssrc.tii.ae>
---
 arch/risc-v/src/mpfs/Kconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/risc-v/src/mpfs/Kconfig b/arch/risc-v/src/mpfs/Kconfig
index a74aaea..adee77b 100755
--- a/arch/risc-v/src/mpfs/Kconfig
+++ b/arch/risc-v/src/mpfs/Kconfig
@@ -13,6 +13,19 @@ config MPFS_ENABLE_DPFPU
 	---help---
 		Enable the RISC-V Double-Precision Floating Point Unit (DP-FPU).
 
+config MPFS_BOOTLOADER
+	bool "Initialize HW"
+	default n
+	---help---
+		This NuttX image is used as a bootloader, which will boot only on one hart, putting the others in WFI
+
+config MPFS_BOOT_HART
+	int "HART used for booting"
+        depends on MPFS_BOOTLOADER
+	default 0
+	---help---
+		The HART number which does the HW initialiization and wakes up the other harts (Default 0, E51 core)
+
 menu "MPFS Peripheral Support"
 
 # These "hidden" settings determine whether a peripheral option is available