diff --git a/src/soc/amd/common/fsp/dmi.c b/src/soc/amd/common/fsp/dmi.c index b500155a03..872417ba44 100644 --- a/src/soc/amd/common/fsp/dmi.c +++ b/src/soc/amd/common/fsp/dmi.c @@ -16,6 +16,7 @@ #include #include #include +#include /** * Convert DDR clock speed (based on memory type) in MHz to the standard reported speed in MT/s @@ -27,6 +28,9 @@ static uint16_t ddr_speed_mhz_to_reported_mts(uint16_t ddr_type, uint16_t speed) return ddr4_speed_mhz_to_reported_mts(speed); case MEMORY_TYPE_LPDDR4: return lpddr4_speed_mhz_to_reported_mts(speed); + case MEMORY_TYPE_DDR5: + case MEMORY_TYPE_LPDDR5: + return ddr5_speed_mhz_to_reported_mts(speed); default: printk(BIOS_ERR, "Unknown memory type %x\n", ddr_type); return 0;