summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2020-09-28 22:33:56 +0800
committerAngel Pons <th3fanbus@gmail.com>2020-10-08 12:08:31 +0000
commitb734ae2e8a1b9d7bca23f97b2da08c7817b8972a (patch)
tree523bcdc65e2131027ce4617ddaa9cf2b176f4f09 /src
parent431741bf008f46326a3685f9395127586481d304 (diff)
vc/intel/fsp/fsp2_0/cpx_sp: Expose DIMM Present and DdrVoltage fields
The fields from SystemMemoryMapHob can be used to generate SMBIOS type 17. Tested=On OCP Delta Lake, verify the values are expected. Change-Id: I988e7341ddd3b701c698b41451a87890f21cc928 Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45797 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
index 7baa11a480..dc870f1ad1 100644
--- a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
+++ b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
@@ -89,7 +89,8 @@ typedef struct SystemMemoryMapElement {
} SYSTEM_MEMORY_MAP_ELEMENT;
typedef struct DimmDevice {
- UINT8 reserved1[2];
+ UINT8 Present;
+ UINT8 reserved1[1];
UINT8 DcpmmPresent;
UINT8 reserved2[1];
UINT8 NumRanks;
@@ -139,22 +140,24 @@ typedef struct SystemMemoryMapHob {
UINT32 memSize; // Total physical memory size
UINT16 memFreq; // Mem Frequency
- UINT8 reserved2[61];
+ UINT8 reserved2[22];
+ UINT8 DdrVoltage;
+ UINT8 reserved3[38];
UINT8 NumChPerMC;
UINT8 numberEntries; // Number of Memory Map Elements
SYSTEM_MEMORY_MAP_ELEMENT Element[(MAX_SOCKET * MAX_DRAM_CLUSTERS * MAX_SAD_RULES) + MAX_FPGA_REMOTE_SAD_RULES];
- UINT8 reserved3[2213];
+ UINT8 reserved4[2213];
MEMMAP_SOCKET Socket[MAX_SOCKET];
- UINT8 reserved4[1603];
+ UINT8 reserved5[1603];
UINT16 BiosFisVersion; // Firmware Interface Specification version currently supported by BIOS
- UINT8 reserved5[24];
+ UINT8 reserved6[24];
UINT32 MmiohBase; // MMIOH base in 64MB granularity
- UINT8 reserved6[5];
+ UINT8 reserved7[5];
} SYSTEM_MEMORY_MAP_HOB;