Skip to content

Commit 9df3730

Browse files
committed
Merge: i2c: smbus: Support DDR5 and LPDDR5 SPD EEPROMs
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4772 JIRA: https://issues.redhat.com/browse/RHEL-49526 Signed-off-by: David Arcari <darcari@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: Desnes Nunes <desnesn@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents 1cf18a7 + 470d90b commit 9df3730

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/i2c/i2c-smbus.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ EXPORT_SYMBOL_GPL(i2c_free_slave_host_notify_device);
310310
* target systems are the same.
311311
* Restrictions to automatic SPD instantiation:
312312
* - Only works if all filled slots have the same memory type
313-
* - Only works for DDR, DDR2, DDR3 and DDR4 for now
313+
* - Only works for (LP)DDR memory types up to DDR5
314314
* - Only works on systems with 1 to 8 memory slots
315315
*/
316316
#if IS_ENABLED(CONFIG_DMI)
@@ -373,6 +373,10 @@ void i2c_register_spd(struct i2c_adapter *adap)
373373
case 0x1E: /* LPDDR4 */
374374
name = "ee1004";
375375
break;
376+
case 0x22: /* DDR5 */
377+
case 0x23: /* LPDDR5 */
378+
name = "spd5118";
379+
break;
376380
default:
377381
dev_info(&adap->dev,
378382
"Memory type 0x%02x not supported yet, not instantiating SPD\n",

0 commit comments

Comments
 (0)