Merge pull request #553 from ozbenh/sim-autoinit

sdram: Unconditionally switch to SW control before inits
This commit is contained in:
enjoy-digital 2020-06-02 15:49:00 +02:00 committed by GitHub
commit ddcf68c062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -996,7 +996,6 @@ int _write_level_cdly_scan = 1;
int sdrlevel(void) int sdrlevel(void)
{ {
int module; int module;
sdrsw();
for(module=0; module<SDRAM_PHY_MODULES; module++) { for(module=0; module<SDRAM_PHY_MODULES; module++) {
#ifdef SDRAM_PHY_WRITE_LEVELING_CAPABLE #ifdef SDRAM_PHY_WRITE_LEVELING_CAPABLE
@ -1034,7 +1033,7 @@ int sdrinit(void)
ddrctrl_init_done_write(0); ddrctrl_init_done_write(0);
ddrctrl_init_error_write(0); ddrctrl_init_error_write(0);
#endif #endif
sdrsw();
init_sequence(); init_sequence();
#ifdef CSR_DDRPHY_BASE #ifdef CSR_DDRPHY_BASE
#ifdef DDRPHY_CMD_DELAY #ifdef DDRPHY_CMD_DELAY