scsi: ceva: rename the resource name to match the linux kernel one
[platform/kernel/u-boot.git] / drivers / ata / ahci-pci.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
4  */
5
6 #include <common.h>
7 #include <ahci.h>
8 #include <scsi.h>
9 #include <dm.h>
10 #include <pci.h>
11
12 static int ahci_pci_bind(struct udevice *dev)
13 {
14         struct udevice *scsi_dev;
15
16         return ahci_bind_scsi(dev, &scsi_dev);
17 }
18
19 static int ahci_pci_probe(struct udevice *dev)
20 {
21         return ahci_probe_scsi_pci(dev);
22 }
23
24 static const struct udevice_id ahci_pci_ids[] = {
25         { .compatible = "ahci-pci" },
26         { }
27 };
28
29 U_BOOT_DRIVER(ahci_pci) = {
30         .name   = "ahci_pci",
31         .id     = UCLASS_AHCI,
32         .ops    = &scsi_ops,
33         .of_match = ahci_pci_ids,
34         .bind   = ahci_pci_bind,
35         .probe = ahci_pci_probe,
36 };
37
38 static struct pci_device_id ahci_pci_supported[] = {
39         { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, ~0) },
40         { PCI_DEVICE(0x1b21, 0x0611) },
41         {},
42 };
43
44 U_BOOT_PCI_DEVICE(ahci_pci, ahci_pci_supported);