soc/amd: factor out _SOC_DEV macro into common block
TEST=Timeless build doesn't change for Mandolin and Gardenia. Change-Id: I1aef68459569536207697bfca407145a7b5334f4 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47515 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jeremy Soller <jeremy@system76.com> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
a262fc6b07
commit
16433c9c92
|
@ -0,0 +1,15 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#ifndef __AMD_BLOCK_PCI_DEVS_H__
|
||||||
|
#define __AMD_BLOCK_PCI_DEVS_H__
|
||||||
|
|
||||||
|
#include <device/pci_def.h>
|
||||||
|
|
||||||
|
#if !defined(__SIMPLE_DEVICE__)
|
||||||
|
#include <device/device.h>
|
||||||
|
#define _SOC_DEV(slot, func) pcidev_on_root(slot, func)
|
||||||
|
#else
|
||||||
|
#define _SOC_DEV(slot, func) PCI_DEV(0, slot, func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __AMD_BLOCK_PCI_DEVS_H__ */
|
|
@ -4,13 +4,7 @@
|
||||||
#define __PI_PICASSO_PCI_DEVS_H__
|
#define __PI_PICASSO_PCI_DEVS_H__
|
||||||
|
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
#include <amdblocks/pci_devs.h>
|
||||||
#if !defined(__SIMPLE_DEVICE__)
|
|
||||||
#include <device/device.h>
|
|
||||||
#define _SOC_DEV(slot, func) pcidev_on_root(slot, func)
|
|
||||||
#else
|
|
||||||
#define _SOC_DEV(slot, func) PCI_DEV(0, slot, func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GNB Root Complex */
|
/* GNB Root Complex */
|
||||||
#define GNB_DEV 0x0
|
#define GNB_DEV 0x0
|
||||||
|
|
|
@ -4,13 +4,7 @@
|
||||||
#define __PI_STONEYRIDGE_PCI_DEVS_H__
|
#define __PI_STONEYRIDGE_PCI_DEVS_H__
|
||||||
|
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
#include <amdblocks/pci_devs.h>
|
||||||
#if !defined(__SIMPLE_DEVICE__)
|
|
||||||
#include <device/device.h>
|
|
||||||
#define _SOC_DEV(slot, func) pcidev_on_root(slot, func)
|
|
||||||
#else
|
|
||||||
#define _SOC_DEV(slot, func) PCI_DEV(0, slot, func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GNB Root Complex */
|
/* GNB Root Complex */
|
||||||
#define GNB_DEV 0x0
|
#define GNB_DEV 0x0
|
||||||
|
|
Loading…
Reference in New Issue