bios/sdram: set init done after memtest (for standalone LiteDRAM controllers)
This commit is contained in:
parent
0cd4e45f48
commit
9d4b7cd515
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue