mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-24 19:53:25 +08:00
nvme: Detect devices that are class Storage Express
This adds support to detect the catchall PCI class for NVMe devices. It allows the drivers to work with most NVMe devices that don't need specific detection due to quirks etc. Tested against a Samsung 960 EVO drive. Signed-off-by: Jon Nettleton <jon@solid-run.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
0adc38be3d
commit
0deb91318b
@ -832,7 +832,7 @@ U_BOOT_DRIVER(nvme) = {
|
||||
};
|
||||
|
||||
struct pci_device_id nvme_supported[] = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0953) },
|
||||
{ PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, ~0) },
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define PCI_CLASS_STORAGE_SATA 0x0106
|
||||
#define PCI_CLASS_STORAGE_SATA_AHCI 0x010601
|
||||
#define PCI_CLASS_STORAGE_SAS 0x0107
|
||||
#define PCI_CLASS_STORAGE_EXPRESS 0x010802
|
||||
#define PCI_CLASS_STORAGE_OTHER 0x0180
|
||||
|
||||
#define PCI_BASE_CLASS_NETWORK 0x02
|
||||
|
Loading…
Reference in New Issue
Block a user