From: Florent Kermarrec Date: Wed, 14 Aug 2019 17:09:58 +0000 (+0200) Subject: bios/sdram: set init done after memtest (for standalone LiteDRAM controllers) X-Git-Tag: 24jan2021_ls180~1046 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d4b7cd5156a222bb68a6f89d852054889357f1c;p=litex.git bios/sdram: set init done after memtest (for standalone LiteDRAM controllers) --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index ecf5fe5a..03dc2b13 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -891,15 +891,16 @@ int sdrinit(void) #endif #endif sdrhw(); -#ifdef CSR_DDRCTRL_BASE - ddrctrl_init_done_write(1); -#endif if(!memtest()) { #ifdef CSR_DDRCTRL_BASE + ddrctrl_init_done_write(1); ddrctrl_init_error_write(1); #endif return 0; } +#ifdef CSR_DDRCTRL_BASE + ddrctrl_init_done_write(1); +#endif return 1; }