soc/amd/*/data_fabric: introduce and use DF_MMIO_REG_SET_SIZE
commit4e4dde484ae86602ada8a56796fc803a5a3b62ea
authorFelix Held <felix-coreboot@felixheld.de>
Tue, 7 Feb 2023 11:13:00 +0000 (7 12:13 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 8 Feb 2023 13:09:45 +0000 (8 13:09 +0000)
treed32ce72b510666cf074071f2a5322e2a186f98de
parentd4be5aacf41603f6df04c235dd55bdb3e57fe81a
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 <felix-coreboot@felixheld.de>
Change-Id: I67420a2973c8ef9a7f0ce19ddc0013de69731689
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72878
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
src/soc/amd/cezanne/include/soc/data_fabric.h
src/soc/amd/common/block/include/amdblocks/data_fabric.h
src/soc/amd/glinda/include/soc/data_fabric.h
src/soc/amd/mendocino/include/soc/data_fabric.h
src/soc/amd/phoenix/include/soc/data_fabric.h
src/soc/amd/picasso/include/soc/data_fabric.h