mb/google/brya: Create rull variant
[coreboot2.git] / src / drivers / asmedia / aspm_blacklist.c
blob90d5217fc6a2d801431b69f1a06d3ca26d8416aa
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/device.h>
5 #include <device/pci.h>
7 static void disable_aspm(struct device *const dev)
9 printk(BIOS_INFO, "Disabling ASPM for %s [%04x/%04x]\n",
10 dev_path(dev), dev->vendor, dev->device);
11 dev->disable_pcie_aspm = 1;
14 static struct device_operations asmedia_noaspm_ops = {
15 .read_resources = pci_dev_read_resources,
16 .set_resources = pci_dev_set_resources,
17 .enable_resources = pci_dev_enable_resources,
18 .enable = disable_aspm,
21 static const unsigned short pci_device_ids[] = {
22 0x0611, /* ASM1061 SATA IDE Controller */
26 static const struct pci_driver asmedia_noaspm __pci_driver = {
27 .ops = &asmedia_noaspm_ops,
28 .vendor = 0x1b21,
29 .devices = pci_device_ids,