Skip to content

Commit

Permalink
Improved DDR5 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
1a2m3 committed Dec 15, 2023
1 parent 04ec083 commit 53d05bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SpdReaderWriterCore/Smbus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public byte I2CAddress {

// Check for DDR5 presence
IsDdr5Present = Eeprom.ValidateEepromAddress(_i2CAddress) &&
ProbeAddress((byte)(Eeprom.LidCode.Pmic0 << 3 | (Eeprom.Spd5Register.LocalHid & value)));
ProbeAddress((byte)(Eeprom.LidCode.Pmic0 << 3 | (Eeprom.Spd5Register.LocalHid & value))) &&
ReadByte(_i2CAddress, 00) == 0x51;

// Reset Eeprom page
Eeprom.ResetPageAddress(this);
Expand Down

0 comments on commit 53d05bc

Please sign in to comment.