summaryrefslogtreecommitdiff
path: root/src/soc/amd/glinda
diff options
context:
space:
mode:
authorFred Reitberger <reitbergerfred@gmail.com>2022-10-31 15:55:44 -0400
committerFred Reitberger <reitbergerfred@gmail.com>2022-11-03 19:49:48 +0000
commit506014f624c8c27165385642e4ad5a86b22a0089 (patch)
treea56182ec93b43b430f3d5ad846ad8fb9699e20f4 /src/soc/amd/glinda
parent89a987899ed006782d9f0db7c2258a871bd76cc3 (diff)
soc/amd/glinda/data_fabric: Add register bitslice struct
Add structs to define the data_fabric register bitfields, updated per glinda ppr #57254, rev 1.51 Update IOMS0_FABRIC_ID and DF_MMIO_NP per referenced ppr. Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com> Change-Id: I509eaf5910d8d65ce0956200d7c00451ff9ce864 Reviewed-on: https://review.coreboot.org/c/coreboot/+/69072 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/amd/glinda')
-rw-r--r--src/soc/amd/glinda/include/soc/data_fabric.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/soc/amd/glinda/include/soc/data_fabric.h b/src/soc/amd/glinda/include/soc/data_fabric.h
index 0bb9561064..32cbd20930 100644
--- a/src/soc/amd/glinda/include/soc/data_fabric.h
+++ b/src/soc/amd/glinda/include/soc/data_fabric.h
@@ -8,10 +8,36 @@
#include <types.h>
/* SoC-specific bits in D18F0_MMIO_CTRL0 */
-#define DF_MMIO_NP BIT(16)
+#define DF_MMIO_NP BIT(3)
-#define IOMS0_FABRIC_ID 9
+#define IOMS0_FABRIC_ID 15
#define NUM_NB_MMIO_REGS 8
+union df_mmio_control {
+ struct {
+ uint32_t re : 1; /* [ 0.. 0] */
+ uint32_t we : 1; /* [ 1.. 1] */
+ uint32_t : 1; /* [ 2.. 2] */
+ uint32_t np : 1; /* [ 3.. 3] */
+ uint32_t : 12; /* [15.. 4] */
+ uint32_t fabric_id : 6; /* [21..16] */
+ uint32_t : 10; /* [31..22] */
+ };
+ uint32_t raw;
+};
+
+union df_ficaa {
+ struct {
+ uint32_t cfg_inst_acc_en : 1; /* [ 0.. 0] */
+ uint32_t reg_num : 10; /* [10.. 1] */
+ uint32_t func_num : 3; /* [13..11] */
+ uint32_t b64_en : 1; /* [14..14] */
+ uint32_t : 1; /* [15..15] */
+ uint32_t inst_id : 8; /* [23..16] */
+ uint32_t : 8; /* [31..24] */
+ };
+ uint32_t raw;
+};
+
#endif /* AMD_GLINDA_DATA_FABRIC_H */