summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-28 12:33:58 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-01-04 12:39:32 +0000
commitf82e68c900151efae572e3bc19690e978b82ca1b (patch)
treefb3709fdb6601c2417baac81219d71fe999c433f /tests
parentaf6cd3f0b44a39bb6387c8218e5872afb74fcc3f (diff)
spd.h: Move enum ddr3_module_type to ddr3.h
Move specific enum ddr3_module_type to <device/dram/ddr3.h>. Change-Id: I8fd7892dda26158a5bdd6cd4972c7859a252153e Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71547 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/dimm_info_util-test.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/lib/dimm_info_util-test.c b/tests/lib/dimm_info_util-test.c
index e16f44135a..43fe6c97f3 100644
--- a/tests/lib/dimm_info_util-test.c
+++ b/tests/lib/dimm_info_util-test.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/dram/ddr2.h>
+#include <device/dram/ddr3.h>
#include <dimm_info_util.h>
#include <spd.h>
#include <tests/test.h>
@@ -146,10 +147,12 @@ static void test_smbios_form_factor_to_spd_mod_type(void **state)
},
{
.memory_type = MEMORY_TYPE_DDR3,
- .udimm_allowed = {DDR3_SPD_UDIMM, DDR3_SPD_MICRO_DIMM,
- DDR3_SPD_MINI_UDIMM},
- .rdimm_allowed = {DDR3_SPD_RDIMM, DDR3_SPD_MINI_RDIMM},
- .expected_module_type = DDR3_SPD_SODIMM,
+ .udimm_allowed = {SPD_DDR3_DIMM_TYPE_UDIMM,
+ SPD_DDR3_DIMM_TYPE_MICRO_DIMM,
+ SPD_DDR3_DIMM_TYPE_MINI_UDIMM},
+ .rdimm_allowed = {SPD_DDR3_DIMM_TYPE_RDIMM,
+ SPD_DDR3_DIMM_TYPE_MINI_RDIMM},
+ .expected_module_type = SPD_DDR3_DIMM_TYPE_SO_DIMM,
},
{
.memory_type = MEMORY_TYPE_DDR4,