From f77fa2f7a99f7198c72b8c5d4c64d740dcba30be Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Tue, 12 Jul 2022 12:33:34 -0600 Subject: util/spd_tools: Add support for 7500 MT/s lp5 modules spd_tools does not support LP5x modules yet, and the easiest way to do this is to add support for 7500 MT/s in lp5.go (reference the comments on CB:65063). BUG=b:238674174 BRANCH=firmware-brya-14505.B TEST=With follow-on CL, run: util/spd_tools/bin/spd_gen spd/lp5/memory_parts.json lp5 Signed-off-by: Jack Rosenthal Change-Id: I1558d69bc6f28c02c20aa9cd87d4543c1cf52afd Reviewed-on: https://review.coreboot.org/c/coreboot/+/65794 Tested-by: build bot (Jenkins) Reviewed-by: Reka Norman Reviewed-by: Caveh Jalali --- util/spd_tools/src/spd_gen/lp5.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/spd_tools/src/spd_gen/lp5.go') diff --git a/util/spd_tools/src/spd_gen/lp5.go b/util/spd_tools/src/spd_gen/lp5.go index 7d355a7afe..0b3a5adae1 100644 --- a/util/spd_tools/src/spd_gen/lp5.go +++ b/util/spd_tools/src/spd_gen/lp5.go @@ -205,6 +205,7 @@ var LP5SetInfo = map[int]LP5Set{ * = 1 / (speed grade / 2 / WCK:CK) // "double data rate" */ speedToTCKMinPs: map[int]int{ + 7500 : 1066, /* 1 / (7500 / 2 / 4) */ 6400 : 1250, /* 1 / (6400 / 2 / 4) */ 5500 : 1455, /* 1 / (5500 / 2 / 4) */ }, @@ -368,6 +369,10 @@ var LP5BankArchToSPDEncoding = map[int]LP5BankArchParams{ * From Table 220 of JESD209-5B, using a 4:1 WCK:CK ratio and Set 0. */ var LP5SpeedMbpsToSPDEncoding = map[int]LP5SpeedParams{ + 7500: { + defaultTCKMinPs : 266, /* 1 / (7500 / 2) */ + MaxCASLatency: 20, + }, 6400: { defaultTCKMinPs : 312, /* 1 / (6400 / 2) */ MaxCASLatency: 17, -- cgit v1.2.3