util: update lp4x gen_part_id tool to include memory type

Add "MEMORY_TYPE = lp4x" to the generated Makefile.inc to indicate
this is lpddr4x memory and to use the generic SPDs from the lpddr4x
respository of SPDs.

BUG=b:160157545
TEST=run gen_part_id for volteer and verify that it adds the line "MEMORY_TYPE =
lp4x" to the makefile produced.

Change-Id: I416690ae8aff8052474b16ef0d3e940e72e6a2fb
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44647
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Nick Vaccaro 2020-08-20 15:58:40 -07:00 committed by Furquan Shaikh
parent 90aeb4d1b5
commit eb7a1dd80e
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ func genMakefile(partIdList []partIds, makefileDirName string) error {
var s string var s string
s += fmt.Sprintf("%s\n%s\n\n", generatedCodeLicense, autoGeneratedInfo) s += fmt.Sprintf("%s\n%s\n\n", generatedCodeLicense, autoGeneratedInfo)
s += fmt.Sprintf("MEMORY_TYPE = lp4x\n\n")
s += fmt.Sprintf("SPD_SOURCES =\n") s += fmt.Sprintf("SPD_SOURCES =\n")
for i := 0; i < len(partIdList); i++ { for i := 0; i < len(partIdList); i++ {