mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/liblitedram: Introduce SDRAM_PHY_DELAY_JUMP and set to 4 on 7-Series instead of 1 to improve calibration robustness on some boards.
This is for example required on the STLV7325 board.
This commit is contained in:
parent
82daa48e09
commit
f6d6611a81
1 changed files with 7 additions and 5 deletions
|
@ -398,14 +398,16 @@ static void sdram_leveling_center_module(
|
|||
|
||||
/* Get a bit further into the working zone */
|
||||
#if SDRAM_PHY_DELAYS > 32
|
||||
for(i=0;i<16;i++) {
|
||||
#define SDRAM_PHY_DELAY_JUMP 16
|
||||
#elif SDRAM_PHY_DELAYS > 8
|
||||
#define SDRAM_PHY_DELAY_JUMP 4
|
||||
#else
|
||||
#define SDRAM_PHY_DELAY_JUMP 1
|
||||
#endif
|
||||
for(i=0;i<SDRAM_PHY_DELAY_JUMP;i++) {
|
||||
delay += 1;
|
||||
inc_delay(module);
|
||||
}
|
||||
#else
|
||||
delay++;
|
||||
inc_delay(module);
|
||||
#endif
|
||||
|
||||
/* Find largest working delay */
|
||||
while(1) {
|
||||
|
|
Loading…
Reference in a new issue