mem_chip_info: Update to new format

Hardware / Coreboot - Julius Werner [chromium.org] - 9 December 2022 00:48 UTC

The original version of the mem_chip_info structure does not record rank information and does not allow precise modeling of certain DDR configurations, so it falls short on its purpose to compile all available memory information. This patch updates the format to a new layout that remedies these issues. Since the structure was introduced so recently that no firmware using it has been finalized and shipped yet, we should be able to get away with this without accounting for backwards compatibility.

BRANCH=corsola

Cq-Depend: chromium:3980175

3460aa3a42 mem_chip_info: Update to new format
.../bsd/include/commonlib/bsd/mem_chip_info.h | 97 +++++++++++++++++++---
src/soc/mediatek/common/emi.c | 3 +-
src/soc/mediatek/common/memory.c | 37 +++++----
src/soc/qualcomm/common/qclib.c | 16 ++--
4 files changed, 118 insertions(+), 35 deletions(-)

Upstream: review.coreboot.org


  • Share