1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
11 static int ahci_pci_bind(struct udevice *dev)
13 struct udevice *scsi_dev;
15 return ahci_bind_scsi(dev, &scsi_dev);
18 static int ahci_pci_probe(struct udevice *dev)
20 return ahci_probe_scsi_pci(dev);
23 static const struct udevice_id ahci_pci_ids[] = {
24 { .compatible = "ahci-pci" },
28 U_BOOT_DRIVER(ahci_pci) = {
31 .of_match = ahci_pci_ids,
32 .bind = ahci_pci_bind,
33 .probe = ahci_pci_probe,
36 static struct pci_device_id ahci_pci_supported[] = {
37 { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, ~0) },
38 { PCI_DEVICE(0x1b21, 0x0611) },
42 U_BOOT_PCI_DEVICE(ahci_pci, ahci_pci_supported);