From 0f45e17f564a657ddf9804124e4e30da0edb1d13 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 6 May 2024 10:08:51 +0200 Subject: dram/ddr5: Use the same naming convention as DDR{2,3,4} Change-Id: I2cc38926b56315d4a828311917ff58051b34b777 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/82214 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/device/dram/spd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/device') diff --git a/src/device/dram/spd.c b/src/device/dram/spd.c index e33a26ad68..41ec7c52c7 100644 --- a/src/device/dram/spd.c +++ b/src/device/dram/spd.c @@ -135,26 +135,26 @@ static void convert_ddr4_module_type_to_spd_info(enum spd_dimm_type_ddr4 module_ } } -static void convert_ddr5_module_type_to_spd_info(enum ddr5_module_type module_type, +static void convert_ddr5_module_type_to_spd_info(enum spd_dimm_type_ddr5 module_type, struct spd_info *info) { switch (module_type) { - case DDR5_SPD_RDIMM: - case DDR5_SPD_MINI_RDIMM: + case SPD_DDR5_DIMM_TYPE_RDIMM: + case SPD_DDR5_DIMM_TYPE_MINI_RDIMM: info->form_factor = MEMORY_FORMFACTOR_DIMM; info->type_detail = MEMORY_TYPE_DETAIL_REGISTERED; break; - case DDR5_SPD_UDIMM: - case DDR5_SPD_MINI_UDIMM: + case SPD_DDR5_DIMM_TYPE_UDIMM: + case SPD_DDR5_DIMM_TYPE_MINI_UDIMM: info->form_factor = MEMORY_FORMFACTOR_DIMM; info->type_detail = MEMORY_TYPE_DETAIL_UNBUFFERED; break; - case DDR5_SPD_SODIMM: - case DDR5_SPD_72B_SO_UDIMM: + case SPD_DDR5_DIMM_TYPE_SODIMM: + case SPD_DDR5_DIMM_TYPE_72B_SO_UDIMM: info->form_factor = MEMORY_FORMFACTOR_SODIMM; info->type_detail = MEMORY_TYPE_DETAIL_UNKNOWN; break; - case DDR5_SPD_2DPC: + case SPD_DDR5_DIMM_TYPE_2DPC: info->form_factor = MEMORY_FORMFACTOR_PROPRIETARY_CARD; info->type_detail = MEMORY_TYPE_DETAIL_UNKNOWN; break; -- cgit v1.2.3