util: volteer/dedede: move generic SPDs to common location

Now that generic SPD files have the memory type prepended to the
filename, they can be stored in the same location.  This CL moves
the generic SPDs to the new location.

Change the ddr4 gen_part_id.go and gen_spd.go tools to use
"ddr4_spd_manifest.generated" instead of "spd_manifest.generated".

Change the lpddr4x gen_part_id.go and gen_spd.go tools to use
"lp4x_spd_manifest.generated" instead of "spd_manifest.generated".

Move TGL DDR4 and LPDDR4x generic SPDs into a common location.

Move JSL DDR4 and LPDDR4x generic SPDs into a common location.

Change the volteer/spd/Makefile.inc to use the new path for the spds.

Change the dedede/spd/Makefile.inc to use the new path for the spds.

BUG=b:165854055
TEST="emerge-volteer coreboot" and verify all variants build correctly.

Change-Id: I83b088cb718d15ffd3012c84a12b5231ae84a3e4
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44648
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nick Vaccaro 2020-08-20 16:19:44 -07:00 committed by Aaron Durbin
parent c19140b49f
commit 48fc1640a8
26 changed files with 37 additions and 38 deletions

View File

@ -3,7 +3,7 @@
ifneq ($(SPD_SOURCES),)
SPD_BIN = $(obj)/spd.bin
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/soc/intel/jasperlake/spd/lp4x/$(f))
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/soc/intel/jasperlake/spd/$(f))
# Include spd ROM data
$(SPD_BIN): $(SPD_DEPS)

View File

@ -5,7 +5,7 @@ ifneq ($(SPD_SOURCES),)
SPD_BIN = $(obj)/spd.bin
ifeq ($(SPD_SOURCE_PATH),)
SPD_SOURCE_PATH := src/soc/intel/tigerlake/spd/lp4x
SPD_SOURCE_PATH := src/soc/intel/tigerlake/spd
endif
SPD_DEPS := $(foreach f, $(SPD_SOURCES), $(SPD_SOURCE_PATH)/$(f))

View File

@ -1,13 +0,0 @@
H9HCNNNBKMMLXR-NEE,spd-1.hex
H9HCNNNFAMMLXR-NEE,spd-2.hex
K4U6E3S4AA-MGCL,spd-1.hex
K4UBE3D4AA-MGCL,spd-3.hex
MT53E1G32D2NP-046 WT:A,spd-4.hex
H9HKNNNCRMBVAR-NEH,spd-5.hex
MT53E1G64D4SQ-046 WT:A,spd-6.hex
MT53E512M32D2NP-046 WT:F,spd-1.hex
NT6AP256T32AV-J2,spd-7.hex
K4U6E3S4AA-MGCR,spd-1.hex
MT53E512M32D2NP-046 WT:E,spd-1.hex
H9HCNNNCPMMLXR-NEE,spd-3.hex
K4UBE3D4AA-MGCR,spd-3.hex

View File

@ -0,0 +1,13 @@
H9HCNNNBKMMLXR-NEE,lp4x-spd-1.hex
H9HCNNNFAMMLXR-NEE,lp4x-spd-2.hex
K4U6E3S4AA-MGCL,lp4x-spd-1.hex
K4UBE3D4AA-MGCL,lp4x-spd-3.hex
MT53E1G32D2NP-046 WT:A,lp4x-spd-4.hex
H9HKNNNCRMBVAR-NEH,lp4x-spd-5.hex
MT53E1G64D4SQ-046 WT:A,lp4x-spd-6.hex
MT53E512M32D2NP-046 WT:F,lp4x-spd-1.hex
NT6AP256T32AV-J2,lp4x-spd-7.hex
K4U6E3S4AA-MGCR,lp4x-spd-1.hex
MT53E512M32D2NP-046 WT:E,lp4x-spd-1.hex
H9HCNNNCPMMLXR-NEE,lp4x-spd-3.hex
K4UBE3D4AA-MGCR,lp4x-spd-3.hex

View File

@ -1,15 +0,0 @@
H9HCNNNBKMMLXR-NEE,spd-1.hex
H9HCNNNFAMMLXR-NEE,spd-2.hex
K4U6E3S4AA-MGCL,spd-1.hex
K4UBE3D4AA-MGCL,spd-3.hex
MT53E1G32D2NP-046 WT:A,spd-4.hex
H9HKNNNCRMBVAR-NEH,spd-1.hex
MT53E1G64D4SQ-046 WT:A,spd-4.hex
MT53E512M32D2NP-046 WT:F,spd-1.hex
NT6AP256T32AV-J2,spd-5.hex
K4U6E3S4AA-MGCR,spd-1.hex
MT53E512M32D2NP-046 WT:E,spd-1.hex
H9HCNNNCPMMLXR-NEE,spd-3.hex
K4UBE3D4AA-MGCR,spd-3.hex
MT53E512M64D4NW-046 WT:E,spd-1.hex
MT53E1G64D8NW-046 WT:E,spd-3.hex

View File

@ -0,0 +1,15 @@
H9HCNNNBKMMLXR-NEE,lp4x-spd-1.hex
H9HCNNNFAMMLXR-NEE,lp4x-spd-2.hex
K4U6E3S4AA-MGCL,lp4x-spd-1.hex
K4UBE3D4AA-MGCL,lp4x-spd-3.hex
MT53E1G32D2NP-046 WT:A,lp4x-spd-4.hex
H9HKNNNCRMBVAR-NEH,lp4x-spd-1.hex
MT53E1G64D4SQ-046 WT:A,lp4x-spd-4.hex
MT53E512M32D2NP-046 WT:F,lp4x-spd-1.hex
NT6AP256T32AV-J2,lp4x-spd-5.hex
K4U6E3S4AA-MGCR,lp4x-spd-1.hex
MT53E512M32D2NP-046 WT:E,lp4x-spd-1.hex
H9HCNNNCPMMLXR-NEE,lp4x-spd-3.hex
K4UBE3D4AA-MGCR,lp4x-spd-3.hex
MT53E512M64D4NW-046 WT:E,lp4x-spd-1.hex
MT53E1G64D8NW-046 WT:E,lp4x-spd-3.hex

View File

@ -175,7 +175,7 @@ memory parts in JSON format as described above:
and placed in the directory provided as an input to the tool.
* CSV file representing which of the deduplicated SPD files is used
by which memory part. This file is named as
`spd_manifest.generated.txt` and placed in the directory provided
`ddr4_spd_manifest.generated.txt` and placed in the directory provided
as an input to the tool along with the generated SPD
files. Example CSV file:
```
@ -190,7 +190,7 @@ memory parts in JSON format as described above:
This program takes as input:
* Pointer to directory where the SPD files and the manifest file
`spd_manifest.generated.txt` (in CSV format) are placed by
`ddr4_spd_manifest.generated.txt` (in CSV format) are placed by
gen_spd.go
* File containing list of memory parts used by the board. Each line of
the file is supposed to contain one memory part `name` as present in

View File

@ -25,7 +25,7 @@ import (
* is expected to have one memory part name.
*/
const (
SPDManifestFileName = "spd_manifest.generated.txt"
SPDManifestFileName = "ddr4_spd_manifest.generated.txt"
MakefileName = "Makefile.inc"
DRAMIdFileName = "dram_id.generated.txt"
)
@ -174,7 +174,6 @@ func genMakefile(partIdList []partIds, makefileDirName string) error {
var s string
s += fmt.Sprintf("%s\n%s\n\n", generatedCodeLicense, autoGeneratedInfo)
s += fmt.Sprintf("MEMORY_TYPE = ddr4\n\n")
s += fmt.Sprintf("SPD_SOURCES =\n")
for i := 0; i < len(partIdList); i++ {

View File

@ -26,7 +26,7 @@ import (
* JSON file containing a list of memory parts with their attributes as per datasheet.
*/
const (
SPDManifestFileName = "spd_manifest.generated.txt"
SPDManifestFileName = "ddr4_spd_manifest.generated.txt"
PlatformTGL = 0
PlatformPCO = 1

View File

@ -25,7 +25,7 @@ import (
* is expected to have one memory part name.
*/
const (
SPDManifestFileName = "spd_manifest.generated.txt"
SPDManifestFileName = "lp4x_spd_manifest.generated.txt"
MakefileName = "Makefile.inc"
DRAMIdFileName = "dram_id.generated.txt"
)

View File

@ -25,7 +25,7 @@ import (
* JSON file containing a list of memory parts with their attributes as per datasheet.
*/
const (
SPDManifestFileName = "spd_manifest.generated.txt"
SPDManifestFileName = "lp4x_spd_manifest.generated.txt"
PlatformTGL = 0
PlatformJSL = 1
@ -666,7 +666,7 @@ func dedupeMemoryPart(dedupedParts []*memPart, memPart *memPart) bool {
func generateSPD(memPart *memPart, SPDId int, SPDDirName string) {
s := createSPD(&memPart.Attribs)
memPart.SPDFileName = fmt.Sprintf("spd-%d.hex", SPDId)
memPart.SPDFileName = fmt.Sprintf("lp4x-spd-%d.hex", SPDId)
ioutil.WriteFile(filepath.Join(SPDDirName, memPart.SPDFileName), []byte(s), 0644)
}