From 5a04746714ddf1fdf4c0e1c9ed8cea4aa7fea511 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Wed, 28 Dec 2022 11:43:49 +0100 Subject: spd.h: Move enum ddr2_module_type to ddr2.h Move specific enum ddr2_module_type to . Change-Id: I748658f9b349bff9b1ebe2c0a6acf71bf2a221ce Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/71546 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- tests/lib/dimm_info_util-test.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/lib/dimm_info_util-test.c b/tests/lib/dimm_info_util-test.c index cecbacbb85..e16f44135a 100644 --- a/tests/lib/dimm_info_util-test.c +++ b/tests/lib/dimm_info_util-test.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include #include @@ -136,10 +137,12 @@ static void test_smbios_form_factor_to_spd_mod_type(void **state) } ddrx_info[] = { { .memory_type = MEMORY_TYPE_DDR2, - .udimm_allowed = {DDR2_SPD_UDIMM, DDR2_SPD_MICRO_DIMM, - DDR2_SPD_MINI_UDIMM}, - .rdimm_allowed = {DDR2_SPD_RDIMM, DDR2_SPD_MINI_RDIMM}, - .expected_module_type = DDR2_SPD_SODIMM, + .udimm_allowed = {SPD_DDR2_DIMM_TYPE_UDIMM, + SPD_DDR2_DIMM_TYPE_MICRO_DIMM, + SPD_DDR2_DIMM_TYPE_MINI_UDIMM}, + .rdimm_allowed = {SPD_DDR2_DIMM_TYPE_RDIMM, + SPD_DDR2_DIMM_TYPE_MINI_RDIMM}, + .expected_module_type = SPD_DDR2_DIMM_TYPE_SO_DIMM, }, { .memory_type = MEMORY_TYPE_DDR3, -- cgit v1.2.3