software/bios/cmds/cmd_litedram: enable sdram_software_control before sdram_mode_register_write.
This commit is contained in:
parent
90a2b80b6a
commit
a1c023b900
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue