From 4e4dde484ae86602ada8a56796fc803a5a3b62ea Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 7 Feb 2023 12:13:00 +0100 Subject: soc/amd/*/data_fabric: introduce and use DF_MMIO_REG_SET_SIZE To be able to handle a special case, add a per-SoC define for DF_MMIO_REG_SET_SIZE instead of having this hard-coded as 4 in the DF_MMIO_* macros. To avoid some duplication, also introduce the DF_MMIO_REG_OFFSET macro. TEST=Output from data_fabric_print_mmio_conf doesn't change on Mandolin. Signed-off-by: Felix Held Change-Id: I67420a2973c8ef9a7f0ce19ddc0013de69731689 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72878 Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger --- src/soc/amd/glinda/include/soc/data_fabric.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/soc/amd/glinda/include') diff --git a/src/soc/amd/glinda/include/soc/data_fabric.h b/src/soc/amd/glinda/include/soc/data_fabric.h index 5a1e77caf2..c0482ee16d 100644 --- a/src/soc/amd/glinda/include/soc/data_fabric.h +++ b/src/soc/amd/glinda/include/soc/data_fabric.h @@ -11,6 +11,7 @@ #define D18F0_MMIO_SHIFT 16 #define D18F0_MMIO_CTRL0 0xD88 +#define DF_MMIO_REG_SET_SIZE 4 #define DF_MMIO_REG_SET_COUNT 8 #define DF_FICAA_BIOS 0x8C -- cgit v1.2.3