summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-08-04 18:45:36 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-08-08 19:43:07 +0000
commit84a60fbb1bdd17b3ca51532f5991fb78ad0f8635 (patch)
treee4a6e1c973a5ff3767236d5e4ca58239e01a43fe /src/soc/amd/common/block
parenta159075d3f86159ab31e0b551f2bb58ff3ceeca7 (diff)
soc/amd/*/include/data_fabric: add dst_ prefix to fabric_id field
Rename the fabric_id struct field in the df_mmio_control union to dst_fabric_id to both better match the register definitions and also be a bit clearer about what this is doing. Also use tabs for indentation in the struct inside the df_mmio_control union. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I0a17d82a5d7b66a8f84854f21fbbb319da81ac43 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76932 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r--src/soc/amd/common/block/data_fabric/data_fabric_helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c
index e19b278cc0..d1ba5c84e3 100644
--- a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c
+++ b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c
@@ -67,13 +67,13 @@ void data_fabric_print_mmio_conf(void)
control.re ? "x" : " ",
control.we ? "x" : " ",
control.np ? "x" : " ",
- control.fabric_id);
+ control.dst_fabric_id);
}
}
void data_fabric_disable_mmio_reg(unsigned int reg)
{
- union df_mmio_control ctrl = { .fabric_id = IOMS0_FABRIC_ID };
+ union df_mmio_control ctrl = { .dst_fabric_id = IOMS0_FABRIC_ID };
data_fabric_broadcast_write32(DF_MMIO_CONTROL(reg), ctrl.raw);
data_fabric_broadcast_write32(DF_MMIO_BASE(reg), 0);
data_fabric_broadcast_write32(DF_MMIO_LIMIT(reg), 0);
@@ -173,7 +173,7 @@ void data_fabric_set_mmio_np(void)
return;
}
- union df_mmio_control np_ctrl = { .fabric_id = IOMS0_FABRIC_ID,
+ union df_mmio_control np_ctrl = { .dst_fabric_id = IOMS0_FABRIC_ID,
.np = 1, .we = 1, .re = 1 };
data_fabric_broadcast_write32(DF_MMIO_BASE(reg), np_bot);
data_fabric_broadcast_write32(DF_MMIO_LIMIT(reg), np_top);