software/bios/cmds/cmd_litedram: enable sdram_software_control before sdram_mode_register_write.

This commit is contained in:
Florent Kermarrec 2020-09-24 14:58:21 +02:00
parent 90a2b80b6a
commit a1c023b900
1 changed files with 3 additions and 1 deletions

View File

@ -164,8 +164,10 @@ static void sdram_mr_write_handler(int nb_params, char **params)
printf("Incorrect value");
return;
}
printf("Writing 0x%04x to MR%d", value, reg);
sdram_software_control_on();
printf("Writing 0x%04x to MR%d\n", value, reg);
sdram_mode_register_write(reg, value);
sdram_software_control_off();
}
define_command(sdram_mr_write, sdram_mr_write_handler, "Write SDRAM Mode Register", LITEDRAM_CMDS);
#endif