mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-10 21:03:49 +08:00
am33xx: Bugfix to config_sdram()
When we change SDRAM_CONFIG this triggers a refresh based on all of the parameters that we have programmed so we must do this last. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
13f1c44bc5
commit
372f11f58d
@ -49,10 +49,9 @@ static struct ddr_cmdtctrl *ioctrl_reg = {
|
||||
*/
|
||||
int config_sdram(struct sdram_config *cfg)
|
||||
{
|
||||
writel(cfg->sdrcr, &emif_reg->emif_sdram_config);
|
||||
writel(cfg->sdrcr2, &emif_reg->emif_lpddr2_nvm_config);
|
||||
writel(cfg->refresh, &emif_reg->emif_sdram_ref_ctrl);
|
||||
writel(cfg->refresh_sh, &emif_reg->emif_sdram_ref_ctrl_shdw);
|
||||
writel(cfg->sdrcr, &emif_reg->emif_sdram_config);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user