summaryrefslogtreecommitdiffstats
path: root/src/mainboard/siemens/mc_apl1/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/siemens/mc_apl1/mainboard.c')
-rw-r--r--src/mainboard/siemens/mc_apl1/mainboard.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c
index bca0cbb4c85b..114d6e32b8fd 100644
--- a/src/mainboard/siemens/mc_apl1/mainboard.c
+++ b/src/mainboard/siemens/mc_apl1/mainboard.c
@@ -215,10 +215,12 @@ static void mainboard_final(void *chip_info)
/* Do board specific things */
variant_mainboard_final();
- /* Set Master Enable for on-board PCI device. */
- dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403f, 0);
- if (dev) {
- pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
+ /* Set Master Enable for on-board PCI device if allowed. */
+ if (CONFIG(PCI_ALLOW_BUS_MASTER)) {
+ dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403f, 0);
+ if (dev) {
+ pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
+ }
}
/* Set up SPI OPCODE menu before the controller is locked. */
fast_spi_set_opcode_menu();