From 65fe21f1c96a0762ba764fe47c8dc1d9cb7ee217 Mon Sep 17 00:00:00 2001 From: Robert Zieba Date: Wed, 17 Aug 2022 12:48:06 -0600 Subject: util/apcb/apcb_v3_edit: Add support for LP5X SDRAM This commit adds support for LP5X SDRAM. BUG=b:242765117 TEST=Ran with LP5X SPDs and manually patched APCB Signed-off-by: Robert Zieba Change-Id: I2d3cb9c9a1523cb4c5149ede1c96a16c3991a5d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66840 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- util/apcb/apcb_v3_edit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/apcb/apcb_v3_edit.py b/util/apcb/apcb_v3_edit.py index 140b23238c..e6b85065ee 100755 --- a/util/apcb/apcb_v3_edit.py +++ b/util/apcb/apcb_v3_edit.py @@ -15,9 +15,11 @@ import os # Byte 1 = 0x11 = Revision 1.1 # Byte 2 = 0x11 = LPDDR4X SDRAM # = 0x13 = LP5 SDRAM +# = 0x15 = LP5X SDRAM # Byte 3 = 0x0E = Non-DIMM Solution LP4_SPD_MAGIC = bytes.fromhex('2311110E') LP5_SPD_MAGIC = bytes.fromhex('2311130E') +LP5X_SPD_MAGIC = bytes.fromhex('2311150E') EMPTY_SPD = b'\x00' * 512 spd_ssp_struct_fmt = '??B?IIBBBxIIBBBx' @@ -53,7 +55,7 @@ def parseargs(): '--mem_type', type=str, default='lp4', - help='Memory type [lp4|lp5]. Default = lp4') + help='Memory type [lp4|lp5|lp5x]. Default = lp4') return parser.parse_args() @@ -86,6 +88,8 @@ def main(): if args.mem_type == 'lp5': spd_magic = LP5_SPD_MAGIC + elif args.mem_type == 'lp5x': + spd_magic = LP5X_SPD_MAGIC spds = [] for spd_source in args.spd_sources: -- cgit v1.2.3