liblitedram/sdram: Add option to disable cdelay()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 22 May 2020 07:37:37 +0000 (17:37 +1000)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 19:39:28 +0000 (21:39 +0200)
commitf8bb500a4396f29aecad5fb4b0a2a1758c25c514
treea2b9dbd2219ef3ea365275ec87c027d44561df14
parent6d72ef28a81bb49435ab9d9d4e5fd5c52984a714
liblitedram/sdram: Add option to disable cdelay()

When running in sim, those delays can take a *long* time, which
isn't always necessary with the simulated litedram PHY.

This allows system.h to optionally set CONFIG_SIM_DISABLE_DELAYS
which  causes cdelay to do nothing.

This is especially useful when using a verilated litedram inside
a bigger/slower simulated design as to not spend a huge amount
of time going through the initializations.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
litex/soc/software/liblitedram/sdram.c