diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-08-08 01:44:33 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-08-09 19:10:04 +0000 |
commit | d81a14558790842e1db0cf35cf26b8f4aa66812c (patch) | |
tree | ad7dd1ea088aafced9f3f4b6c9f752906bc2c691 /src/soc/amd/mendocino | |
parent | 1b39cb1ba0ac0f151f7d0bcf19f2a48ee8f65c50 (diff) | |
download | coreboot-d81a14558790842e1db0cf35cf26b8f4aa66812c.tar.gz coreboot-d81a14558790842e1db0cf35cf26b8f4aa66812c.tar.bz2 coreboot-d81a14558790842e1db0cf35cf26b8f4aa66812c.zip |
soc/amd/mendocino/include/data_fabric: add DF PCI config map register
PPRs #57243 Rev 3.02 and #56558 Rev 3.04 were used as a reference.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ibabe8faa79e3dcd02f4c885d29b9634645947b98
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77077
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/mendocino')
-rw-r--r-- | src/soc/amd/mendocino/include/soc/data_fabric.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/amd/mendocino/include/soc/data_fabric.h b/src/soc/amd/mendocino/include/soc/data_fabric.h index 78d926bc3f21..131141215734 100644 --- a/src/soc/amd/mendocino/include/soc/data_fabric.h +++ b/src/soc/amd/mendocino/include/soc/data_fabric.h @@ -8,6 +8,25 @@ #define IOMS0_FABRIC_ID 9 +#define DF_PCI_CFG_MAP0 DF_REG_ID(0, 0xa0) + +#define DF_PCI_CFG_MAP_COUNT 8 + +#define DF_PCI_CFG_MAP(reg) (DF_PCI_CFG_MAP0 + (reg) * sizeof(uint32_t)) + +union df_pci_cfg_map { + struct { + uint32_t re : 1; /* [ 0.. 0] */ + uint32_t we : 1; /* [ 1.. 1] */ + uint32_t : 2; /* [ 2.. 3] */ + uint32_t dst_fabric_id : 4; /* [ 4.. 7] */ + uint32_t : 8; /* [ 8..15] */ + uint32_t bus_num_base : 8; /* [16..23] */ + uint32_t bus_num_limit : 8; /* [24..31] */ + }; + uint32_t raw; +}; + #define DF_IO_BASE0 DF_REG_ID(0, 0xc0) #define DF_IO_LIMIT0 DF_REG_ID(0, 0xc4) |