2 * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
12 static int ahci_pci_bind(struct udevice
*dev
)
14 struct udevice
*scsi_dev
;
16 return ahci_bind_scsi(dev
, &scsi_dev
);
19 static int ahci_pci_probe(struct udevice
*dev
)
21 return ahci_probe_scsi_pci(dev
);
24 static const struct udevice_id ahci_pci_ids
[] = {
25 { .compatible
= "ahci-pci" },
29 U_BOOT_DRIVER(ahci_pci
) = {
32 .of_match
= ahci_pci_ids
,
33 .bind
= ahci_pci_bind
,
34 .probe
= ahci_pci_probe
,
37 static struct pci_device_id ahci_pci_supported
[] = {
38 { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI
, ~0) },
42 U_BOOT_PCI_DEVICE(ahci_pci
, ahci_pci_supported
);