summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMayuresh Chitale <mchitale@ventanamicro.com>2023-06-03 17:02:53 +0300
committerTom Rini <trini@konsulko.com>2023-06-20 00:19:44 +0300
commitf3228a7232663c5690eed1a15f1299c25c910179 (patch)
tree59936840388735d637f79b055497134d87fcd235 /common
parentbb922ca3eb4b92a27e98fb5d81bf22242e9d4f0e (diff)
downloadu-boot-f3228a7232663c5690eed1a15f1299c25c910179.tar.xz
spl: Add Kconfig options for NVME
Add kconfig options to enable NVME and PCI NVMe support in SPL Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 6774ba5b42..ae0d50744e 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1263,6 +1263,32 @@ config SPL_SATA_RAW_U_BOOT_SECTOR
Sector on the SATA disk to load U-Boot from, when the SATA disk is being
used in raw mode. Units: SATA disk sectors (1 sector = 512 bytes).
+config SPL_NVME
+ bool "NVM Express device support"
+ depends on BLK
+ select HAVE_BLOCK_DEVICE
+ select FS_LOADER
+ help
+ This option enables support for NVM Express devices.
+ It supports basic functions of NVMe (read/write).
+
+config SPL_NVME_PCI
+ bool "NVM Express PCI device support for SPL"
+ depends on SPL_PCI && SPL_NVME
+ help
+ This option enables support for NVM Express PCI devices.
+ This allows use of NVMe devices for loading u-boot.
+
+config SPL_NVME_BOOT_DEVICE
+ hex "NVMe boot device number"
+ depends on SPL_NVME
+ default 0x0
+
+config SYS_NVME_BOOT_PARTITION
+ hex "NVMe boot partition number"
+ depends on SPL_NVME
+ default 0x1
+
config SPL_SERIAL
bool "Support serial"
select SPL_PRINTF