]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 8 Oct 2025 12:25:02 +0000 (14:25 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Oct 2025 18:09:57 +0000 (20:09 +0200)
This is needed for newer u-boot-sam460ex versions to pass the DRAM
setup.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251008122502.9DA8956F301@zero.eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i2c/smbus_eeprom.c

index 0a1088fbb0ab3ef21d9ee451199bdd1ef0b0ec4d..26e211b31ad585002742e47609d208dcc3dc15c3 100644 (file)
@@ -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++) {