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 <robertzieba@google.com> Change-Id: I2d3cb9c9a1523cb4c5149ede1c96a16c3991a5d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66840 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin L Roth
parent
c4d77128c5
commit
65fe21f1c9
@ -15,9 +15,11 @@ import os
|
|||||||
# Byte 1 = 0x11 = Revision 1.1
|
# Byte 1 = 0x11 = Revision 1.1
|
||||||
# Byte 2 = 0x11 = LPDDR4X SDRAM
|
# Byte 2 = 0x11 = LPDDR4X SDRAM
|
||||||
# = 0x13 = LP5 SDRAM
|
# = 0x13 = LP5 SDRAM
|
||||||
|
# = 0x15 = LP5X SDRAM
|
||||||
# Byte 3 = 0x0E = Non-DIMM Solution
|
# Byte 3 = 0x0E = Non-DIMM Solution
|
||||||
LP4_SPD_MAGIC = bytes.fromhex('2311110E')
|
LP4_SPD_MAGIC = bytes.fromhex('2311110E')
|
||||||
LP5_SPD_MAGIC = bytes.fromhex('2311130E')
|
LP5_SPD_MAGIC = bytes.fromhex('2311130E')
|
||||||
|
LP5X_SPD_MAGIC = bytes.fromhex('2311150E')
|
||||||
EMPTY_SPD = b'\x00' * 512
|
EMPTY_SPD = b'\x00' * 512
|
||||||
|
|
||||||
spd_ssp_struct_fmt = '??B?IIBBBxIIBBBx'
|
spd_ssp_struct_fmt = '??B?IIBBBxIIBBBx'
|
||||||
@ -53,7 +55,7 @@ def parseargs():
|
|||||||
'--mem_type',
|
'--mem_type',
|
||||||
type=str,
|
type=str,
|
||||||
default='lp4',
|
default='lp4',
|
||||||
help='Memory type [lp4|lp5]. Default = lp4')
|
help='Memory type [lp4|lp5|lp5x]. Default = lp4')
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
@ -86,6 +88,8 @@ def main():
|
|||||||
|
|
||||||
if args.mem_type == 'lp5':
|
if args.mem_type == 'lp5':
|
||||||
spd_magic = LP5_SPD_MAGIC
|
spd_magic = LP5_SPD_MAGIC
|
||||||
|
elif args.mem_type == 'lp5x':
|
||||||
|
spd_magic = LP5X_SPD_MAGIC
|
||||||
|
|
||||||
spds = []
|
spds = []
|
||||||
for spd_source in args.spd_sources:
|
for spd_source in args.spd_sources:
|
||||||
|
Reference in New Issue
Block a user