bios/sdram: set init done after memtest (for standalone LiteDRAM controllers)

This commit is contained in:
Florent Kermarrec 2019-08-14 19:09:58 +02:00
parent 0cd4e45f48
commit 9d4b7cd515
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}