diff mbox series

[v3,1/5] spl: Add Kconfig options for NVME

Message ID 20230504095327.2791676-2-mchitale@ventanamicro.com
State Changes Requested
Delegated to: Tom Rini
Headers show
Series SPL NVMe support | expand

Commit Message

Mayuresh Chitale May 4, 2023, 9:53 a.m. UTC
Add kconfig options to enable NVME and PCI NVMe support in SPL

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
---
 common/spl/Kconfig | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Simon Glass May 5, 2023, 12:41 a.m. UTC | #1
On Thu, 4 May 2023 at 03:53, Mayuresh Chitale <mchitale@ventanamicro.com> wrote:
>
> Add kconfig options to enable NVME and PCI NVMe support in SPL
>
> Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
> ---
>  common/spl/Kconfig | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index 2c042ad306..515e8f2c66 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -1263,6 +1263,27 @@ 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).
>

Reviewed-by: Simon Glass <sjg@chromium.org>


> +config SPL_NVME
> +       bool "NVM Express device support"
> +       depends on BLK
> +       select HAVE_BLOCK_DEVICE
> +       select SPL_BLK_FS
> +       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 SPL_SERIAL
>         bool "Support serial"
>         select SPL_PRINTF
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..515e8f2c66 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1263,6 +1263,27 @@  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 SPL_BLK_FS
+	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 SPL_SERIAL
 	bool "Support serial"
 	select SPL_PRINTF