Attention is currently required from: Jason Glenesk, Raul Rangel, Marshall Dawson. Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/50621 )
Change subject: soc/amd/common/block/data_fabric: add data_fabric_broadcast_read/write32 ......................................................................
soc/amd/common/block/data_fabric: add data_fabric_broadcast_read/write32
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: I81e7ff293865ef22ed74606e1e79f67a460de4a7 --- M src/soc/amd/common/block/include/amdblocks/data_fabric.h 1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/50621/1
diff --git a/src/soc/amd/common/block/include/amdblocks/data_fabric.h b/src/soc/amd/common/block/include/amdblocks/data_fabric.h index 3695c4a..c61fda1 100644 --- a/src/soc/amd/common/block/include/amdblocks/data_fabric.h +++ b/src/soc/amd/common/block/include/amdblocks/data_fabric.h @@ -10,4 +10,16 @@ uint32_t data_fabric_read32(uint8_t function, uint16_t reg, uint8_t instance_id); void data_fabric_write32(uint8_t function, uint16_t reg, uint8_t instance_id, uint32_t data);
+static __always_inline +uint32_t data_fabric_broadcast_read32(uint8_t function, uint16_t reg) +{ + return data_fabric_read32(function, reg, BROADCAST_FABRIC_ID); +} + +static __always_inline +void data_fabric_broadcast_write32(uint8_t function, uint16_t reg, uint32_t data) +{ + data_fabric_write32(function, reg, BROADCAST_FABRIC_ID, data); +} + #endif /* AMD_BLOCK_DATA_FABRIC_H */