From 5bb0d755669765f93d8f3483667476ca14b96585 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Mon, 25 Sep 2017 10:00:47 -0600 Subject: [PATCH] amd/stoneyridge: Clarify SPD structure in chip.h Add #define values and clarify the spdAddrLookup array. Change-Id: I39b9913a2fd52f9105e4a771f651a8d9649202e6 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/21852 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/soc/amd/stoneyridge/chip.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/stoneyridge/chip.h b/src/soc/amd/stoneyridge/chip.h index 4e1aa66eea..de6585e164 100644 --- a/src/soc/amd/stoneyridge/chip.h +++ b/src/soc/amd/stoneyridge/chip.h @@ -18,8 +18,12 @@ #include +#define MAX_NODES 1 +#define MAX_DRAM_CH 1 +#define MAX_DIMMS_PER_CH 2 + struct soc_amd_stoneyridge_config { - u8 spdAddrLookup[1][1][2]; + u8 spdAddrLookup[MAX_NODES][MAX_DRAM_CH][MAX_DIMMS_PER_CH]; }; typedef struct soc_amd_stoneyridge_config config_t;