From: BALATON Zoltan Date: Wed, 8 Oct 2025 12:25:02 +0000 (+0200) Subject: hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2 X-Git-Tag: v10.2.0-rc1~53^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40eed74cc9deaa4343b31e49a6fbf7f037e8d841;p=thirdparty%2Fqemu.git hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2 This is needed for newer u-boot-sam460ex versions to pass the DRAM setup. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20251008122502.9DA8956F301@zero.eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/hw/i2c/smbus_eeprom.c b/hw/i2c/smbus_eeprom.c index 0a1088fbb0..26e211b31a 100644 --- a/hw/i2c/smbus_eeprom.c +++ b/hw/i2c/smbus_eeprom.c @@ -288,6 +288,7 @@ uint8_t *spd_data_generate(enum sdram_type type, ram_addr_t ram_size) spd[33] = 8; /* addr/cmd hold time */ spd[34] = 20; /* data input setup time */ spd[35] = 8; /* data input hold time */ + spd[36] = (type == DDR2 ? 13 << 2 : 0); /* min. write recovery time */ /* checksum */ for (i = 0; i < 63; i++) {