Attention is currently required from: Jason Glenesk, Matt DeVillier, Felix Held.

Fred Reitberger has uploaded this change for review.

View Change

soc/amd/picasso/data_fabric: Add register bitslice struct

Add structs to define the data_fabric register bitfields.

Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Change-Id: If7cc94681cd5e282e09455c0ac7d3675884c3cf9
---
M src/soc/amd/picasso/include/soc/data_fabric.h
1 file changed, 39 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/69069/1
diff --git a/src/soc/amd/picasso/include/soc/data_fabric.h b/src/soc/amd/picasso/include/soc/data_fabric.h
index 054ca89..f71abe0 100644
--- a/src/soc/amd/picasso/include/soc/data_fabric.h
+++ b/src/soc/amd/picasso/include/soc/data_fabric.h
@@ -14,6 +14,33 @@

#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 : 2; /* [ 3.. 2] */
+ uint32_t fabric_id : 8; /* [11.. 4] */
+ uint32_t np : 1; /* [12..12] */
+ uint32_t : 19; /* [31..13] */
+ };
+ uint32_t raw;
+};
+
+union df_ficaa {
+ struct {
+ uint32_t cfg_inst_acc_en : 1; /* [ 0.. 0] */
+ uint32_t : 1; /* [ 1.. 1] */
+ uint32_t reg_num : 9; /* [10.. 2] */
+ 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;
+};
+
+
#define D18F0_VGAEN 0x80
#define VGA_ADDR_ENABLE BIT(0)


To view, visit change 69069. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If7cc94681cd5e282e09455c0ac7d3675884c3cf9
Gerrit-Change-Number: 69069
Gerrit-PatchSet: 1
Gerrit-Owner: Fred Reitberger <reitbergerfred@gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk@gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Gerrit-Attention: Jason Glenesk <jason.glenesk@gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Gerrit-Attention: Felix Held <felix-coreboot@felixheld.de>
Gerrit-MessageType: newchange