mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
drivers/ddr/fsl: Fix workaround for A009803
Wrong field was masked in this workaround due to wrong endianness. The impacted SoCs have big-endian. Signed-off-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
426230a65f
commit
d46ec0bbaf
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
|
||||||
if (regs->ddr_sdram_cfg_2 & SDRAM_CFG2_AP_EN) {
|
if (regs->ddr_sdram_cfg_2 & SDRAM_CFG2_AP_EN) {
|
||||||
if (regs->ddr_sdram_cfg & SDRAM_CFG_RD_EN) { /* for RDIMM */
|
if (regs->ddr_sdram_cfg & SDRAM_CFG_RD_EN) { /* for RDIMM */
|
||||||
ddr_out32(&ddr->ddr_sdram_rcw_2,
|
ddr_out32(&ddr->ddr_sdram_rcw_2,
|
||||||
regs->ddr_sdram_rcw_2 & ~0x0f000000);
|
regs->ddr_sdram_rcw_2 & ~0xf0);
|
||||||
}
|
}
|
||||||
ddr_out32(&ddr->err_disable, regs->err_disable |
|
ddr_out32(&ddr->err_disable, regs->err_disable |
|
||||||
DDR_ERR_DISABLE_APED);
|
DDR_ERR_DISABLE_APED);
|
||||||
|
|
Loading…
Reference in a new issue