summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-05-06 05:19:20 +0200
committerElyes Haouas <ehaouas@noos.fr>2024-05-07 10:52:58 +0000
commit239347a90934deb77443869b6544c31f9b261733 (patch)
treeb302d513ef5d65883b6f4e384828e19ccc767b4a /tests
parent78ba7a7865ed1f60c7f55bfcced305bc8fbdc9c6 (diff)
spd.h: Move enum ddr4_module_type to ddr4.h
Move specific enum ddr4_module_type to <device/dram/ddr4.h>. Change-Id: Ia538d2c73affa6560fa1533a40c02b3677588f5a Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82122 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <czapiga@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/dimm_info_util-test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/dimm_info_util-test.c b/tests/lib/dimm_info_util-test.c
index 3d11416c8a..624924f9c7 100644
--- a/tests/lib/dimm_info_util-test.c
+++ b/tests/lib/dimm_info_util-test.c
@@ -2,6 +2,7 @@
#include <device/dram/ddr2.h>
#include <device/dram/ddr3.h>
+#include <device/dram/ddr4.h>
#include <device/dram/ddr5.h>
#include <dimm_info_util.h>
#include <spd.h>
@@ -157,9 +158,11 @@ static void test_smbios_form_factor_to_spd_mod_type(void **state)
},
{
.memory_type = MEMORY_TYPE_DDR4,
- .udimm_allowed = {DDR4_SPD_UDIMM, DDR4_SPD_MINI_UDIMM},
- .rdimm_allowed = {DDR4_SPD_RDIMM, DDR4_SPD_MINI_RDIMM},
- .expected_module_type = DDR4_SPD_SODIMM,
+ .udimm_allowed = {SPD_DDR4_DIMM_TYPE_UDIMM,
+ SPD_DDR4_DIMM_TYPE_MINI_UDIMM},
+ .rdimm_allowed = {SPD_DDR4_DIMM_TYPE_RDIMM,
+ SPD_DDR4_DIMM_TYPE_MINI_RDIMM},
+ .expected_module_type = SPD_DDR4_DIMM_TYPE_SO_DIMM,
},
{.memory_type = MEMORY_TYPE_DDR5,
.udimm_allowed = {DDR5_SPD_UDIMM, DDR5_SPD_MINI_UDIMM},