/* SPDX-License-Identifier: GPL-2.0-only */ | |
#include <device/pci_def.h> | |
#include <device/pci_ids.h> | |
#include <device/pci_ops.h> | |
#include <device/device.h> | |
#include <baseboard/variants.h> | |
void variant_mainboard_final(void) | |
{ | |
struct device *dev; | |
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) { | |
/* Set Master Enable for on-board PCI device if allowed. */ | |
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0); | |
if (dev) { | |
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); | |
} | |
} | |
} |