arm: Fill memory info
Obtain memory channel count from fdt_channel_count and report channel
count as dimm count. Obtain per channel information from
fdt_get_channel_info and fill nonspd_mem_info struct accordingly.
The following mosys output is from Ciri equipping 4GB momery that
utilizes 4 channels.
dimm="0" dram="LPDDR4"
dimm="1" dram="LPDDR4"
dimm="2" dram="LPDDR4"
dimm="3" dram="LPDDR4"
dimm="0" module_mfg="128-0" part_number="UNPROVISIONED"
dimm="1" module_mfg="128-0" part_number="UNPROVISIONED"
dimm="2" module_mfg="128-0" part_number="UNPROVISIONED"
dimm="3" module_mfg="128-0" part_number="UNPROVISIONED"
dimm="0" size_mb="1024" ranks="1" width="16"
dimm="1" size_mb="1024" ranks="1" width="16"
dimm="2" size_mb="1024" ranks="1" width="16"
dimm="3" size_mb="1024" ranks="1" width="16"
BUG=b:348095503
TEST=Run `memory spd print all -k` on Ciri
Change-Id: I3297f2a7864feb140e3b603968bf4ce4bdb746ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/mosys/+/5776167
Reviewed-by: Yu-Ping Wu <[email protected]>
Reviewed-by: Jack Rosenthal <[email protected]>
Commit-Queue: Yidi Lin <[email protected]>
Tested-by: Yidi Lin <[email protected]>
2 files changed