Debian Codegraph @

src/drivers/amd/opensil/mpio/chip.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <device/device.h>
4 #include <vendorcode/amd/opensil/opensil.h>
5
6 #include "chip.h"
7 #include "../opensil.h"
8
9 struct chip_operations drivers_amd_opensil_mpio_ops = {
10 .name = "AMD MPIO",
11 };
12
13 void configure_mpio(void)
14 {
15 opensil_mpio_global_config();
16
17 /* Find all devices with this chip that are directly below the chip */
18 for (struct device *dev = &dev_root; dev; dev = dev->next)
19 if (dev->chip_ops == &drivers_amd_opensil_mpio_ops &&
20 dev->chip_info != dev->upstream->dev->chip_info)
21 opensil_mpio_per_device_config(dev);
22 }