Skip to content

Commit

Permalink
libpayload/storage: Add NVMe driver
Browse files Browse the repository at this point in the history
Tested with qemu virtual NVMe and Intel hardware. Works with FILO.

Change-Id: Ie75b1dc743dac3426c230c57ee23b771ba3a6e0c
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33582
Reviewed-by:  Felix Singer <felixsinger@posteo.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
  • Loading branch information
heijligen authored and i-c-o-n committed Apr 7, 2021
1 parent 989323d commit fffc21d
Show file tree
Hide file tree
Showing 7 changed files with 433 additions and 0 deletions.
1 change: 1 addition & 0 deletions payloads/libpayload/drivers/Makefile.inc
Expand Up @@ -77,6 +77,7 @@ libc-y += video/graphics.c
libc-$(CONFIG_LP_STORAGE) += storage/storage.c
libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci.c
libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci_common.c
libc-$(CONFIG_LP_STORAGE_NVME) += storage/nvme.c
ifeq ($(CONFIG_LP_STORAGE_ATA),y)
libc-$(CONFIG_LP_STORAGE_ATA) += storage/ata.c
libc-$(CONFIG_LP_STORAGE_ATA) += storage/ahci_ata.c
Expand Down
7 changes: 7 additions & 0 deletions payloads/libpayload/drivers/storage/Kconfig
Expand Up @@ -49,3 +49,10 @@ config STORAGE_AHCI_ONLY_TESTED
help
If this option is selected, only AHCI controllers which are known
to work will be used.

config STORAGE_NVME
bool "Support for NVMe devices"
depends on STORAGE && PCI
default y
help
Select this option if you want support for NVMe devices.

0 comments on commit fffc21d

Please sign in to comment.