Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44511 )
Change subject: device: Add function to make bus master enable ......................................................................
device: Add function to make bus master enable
New function name "pci_dev_enable_bus_master" to set bus master for PCI device.
BUG=b:154900210 TEST=Able to build and boot CML and TGL platform.
Change-Id: Ic2f2e56897713a3d0683f8d98080b6a3bfd73178 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/device/pci_device.c M src/include/device/pci.h 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/44511/1
diff --git a/src/device/pci_device.c b/src/device/pci_device.c index 3623c3b..b74096e 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -782,6 +782,7 @@ .acpi_fill_ssdt = pci_rom_ssdt, #endif .init = pci_dev_init, + .final = pci_dev_enable_bus_master, .ops_pci = &pci_dev_ops_pci, };
@@ -1644,3 +1645,9 @@ pci_update_config16(dev, PCI_COMMAND, ~PCI_COMMAND_MASTER, 0x0); } #endif + +/* Set Bus Master */ +void pci_dev_enable_bus_master(struct device *dev) +{ + pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); +} diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 4529074..626f0e4 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -76,6 +76,7 @@ void pci_dev_set_resources(struct device *dev); void pci_dev_enable_resources(struct device *dev); void pci_bus_enable_resources(struct device *dev); +void pci_dev_enable_bus_master(struct device *dev); void pci_bus_reset(struct bus *bus); struct device *pci_probe_dev(struct device *dev, struct bus *bus, unsigned int devfn);
Subrata Banik has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/44511 )
Change subject: device: Add function to make bus master enable ......................................................................
Abandoned