blob: 1baa8ec8025e5cd6cd3553bcaee465e27dbc1d9a [file] [log] [blame]
Angel Pons6ad91762020-04-03 01:23:24 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Mario Scheithauer66038c82018-09-25 17:26:32 +02002
Mario Scheithauer66038c82018-09-25 17:26:32 +02003#include <device/pci_def.h>
4#include <device/pci_ids.h>
5#include <device/pci_ops.h>
Elyes HAOUAS485a83f2021-02-01 21:36:53 +01006#include <device/device.h>
Mario Scheithauer66038c82018-09-25 17:26:32 +02007#include <baseboard/variants.h>
Werner Zeh42065f82019-05-02 12:45:21 +02008
Mario Scheithauer66038c82018-09-25 17:26:32 +02009void variant_mainboard_final(void)
10{
11 struct device *dev;
Mario Scheithauer66038c82018-09-25 17:26:32 +020012
13 /* Set Master Enable for on-board PCI device. */
14 dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
15 if (dev) {
Angel Pons28ed7872020-11-10 20:07:33 +010016 pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
Mario Scheithauer66038c82018-09-25 17:26:32 +020017 }
Mario Scheithauer66038c82018-09-25 17:26:32 +020018}