diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-08-08 01:39:18 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-08-09 19:09:35 +0000 |
commit | 001bf0c7a86ef333756b6bfa6c76541c5a4a8dd4 (patch) | |
tree | 5d387194f49cde46e4da67fbcb47e0bfa450a1c9 /src | |
parent | 8bb97348f9b79cda25112f44d8b2c3611443d16c (diff) |
soc/amd/picasso/include/data_fabric: add DF PCI config map register
PPR #55570 Rev 3.18 was used as a reference.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ide492f4479b85cd885044bbf74d8bf18c12e552b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77075
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/picasso/include/soc/data_fabric.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/include/soc/data_fabric.h b/src/soc/amd/picasso/include/soc/data_fabric.h index f63b027dec..805e02e974 100644 --- a/src/soc/amd/picasso/include/soc/data_fabric.h +++ b/src/soc/amd/picasso/include/soc/data_fabric.h @@ -11,6 +11,25 @@ #define D18F0_VGAEN DF_REG_ID(0, 0x80) #define VGA_ADDR_ENABLE BIT(0) +#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 : 8; /* [ 4..11] */ + uint32_t : 4; /* [12..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) |