From 26f55797cca4e8bb101927d0b5fd9e8d9171c13f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 10 Mar 2021 19:41:02 +0100 Subject: [PATCH] software/liblitedram: Make sure init_error is set before init_done. Useful for standalone core where the user logic can be looking at init_done/init_error to condition user accesses. --- litex/soc/software/liblitedram/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index fe32e3357..2de737443 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -1042,8 +1042,8 @@ int sdram_init(void) #ifndef SDRAM_TEST_DISABLE if(!memtest((unsigned int *) MAIN_RAM_BASE, MEMTEST_DATA_SIZE)) { #ifdef CSR_DDRCTRL_BASE - ddrctrl_init_done_write(1); ddrctrl_init_error_write(1); + ddrctrl_init_done_write(1); #endif return 0; }