From a4b9c182dded30d2a9437b6e78df9f60251cb85e Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 12 Jul 2024 15:25:02 +0200 Subject: soc/amd/common/root_complex: move IOHC_MMIO_EN definition to header To be able to use the IOHC_MMIO_EN define in other compilation units, move the define to the corresponding header file. Signed-off-by: Felix Held Change-Id: If88950418406d1709ed95b3d05f7e6ad66438f95 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83444 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Varshit Pandya --- src/soc/amd/common/block/include/amdblocks/root_complex.h | 2 ++ src/soc/amd/common/block/root_complex/non_pci_resources.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/include/amdblocks/root_complex.h b/src/soc/amd/common/block/include/amdblocks/root_complex.h index 767221ec06..9ef5d05925 100644 --- a/src/soc/amd/common/block/include/amdblocks/root_complex.h +++ b/src/soc/amd/common/block/include/amdblocks/root_complex.h @@ -11,6 +11,8 @@ #define SMN_IOHC_MISC_BASE_13D1 0x13d10000 #define SMN_IOHC_MISC_BASE_13E1 0x13e10000 +#define IOHC_MMIO_EN BIT(0) + #define NON_PCI_RES_IDX_AUTO 0 struct non_pci_mmio_reg { diff --git a/src/soc/amd/common/block/root_complex/non_pci_resources.c b/src/soc/amd/common/block/root_complex/non_pci_resources.c index 54f3de276f..1e2e235beb 100644 --- a/src/soc/amd/common/block/root_complex/non_pci_resources.c +++ b/src/soc/amd/common/block/root_complex/non_pci_resources.c @@ -5,8 +5,6 @@ #include #include -#define IOHC_MMIO_EN BIT(0) - void read_non_pci_resources(struct device *domain, unsigned long *idx) { const uint32_t iohc_misc_base = get_iohc_misc_smn_base(domain); -- cgit v1.2.3