Debian Codegraph @

src/mainboard/siemens/mc_apl1/variants/mc_apl2/mainboard.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <cf9_reset.h>
4 #include <device/pci_def.h>
5 #include <device/pci_ids.h>
6 #include <device/pci_ops.h>
7 #include <device/device.h>
8 #include <baseboard/variants.h>
9
10 void variant_mainboard_final(void)
11 {
12 struct device *dev;
13
14 if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) {
15 /* Set Master Enable for on-board PCI device if allowed. */
16 dev = dev_find_device(PCI_VID_SIEMENS, 0x403e, 0);
17 if (dev) {
18 pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
19 }
20 }
21
22 /* Set Full Reset Bit in Reset Control Register (I/O port CF9h). When Bit 3 is set to 1
23 and then a warm reset is triggered the PCH will drive SLP_S3 active (low). SLP_S3 is
24 then used on the mainboard to generate the right reset timing. */
25 outb(FULL_RST, RST_CNT);
26 }