Skip to content
Snippets Groups Projects
Commit 1b2b4066 authored by Shaohui Xie's avatar Shaohui Xie Committed by York Sun
Browse files

armv8: ls1046a: disable SATA ECC in DCSR


This is a workaround to fix SATA CRC error. Once the root cause
is found the ECC disabling will be removed.

Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@nxp.com>
Signed-off-by: default avatarGong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 5f5e8d92
No related branches found
No related tags found
No related merge requests found
...@@ -228,6 +228,10 @@ int sata_init(void) ...@@ -228,6 +228,10 @@ int sata_init(void)
{ {
struct ccsr_ahci __iomem *ccsr_ahci = (void *)CONFIG_SYS_SATA; struct ccsr_ahci __iomem *ccsr_ahci = (void *)CONFIG_SYS_SATA;
#ifdef CONFIG_LS1046A
/* Disable SATA ECC */
out_le32((void *)CONFIG_SYS_DCSR_DCFG_ADDR + 0x520, 0x80000000);
#endif
out_le32(&ccsr_ahci->ppcfg, AHCI_PORT_PHY_1_CFG); out_le32(&ccsr_ahci->ppcfg, AHCI_PORT_PHY_1_CFG);
out_le32(&ccsr_ahci->pp2c, AHCI_PORT_PHY_2_CFG); out_le32(&ccsr_ahci->pp2c, AHCI_PORT_PHY_2_CFG);
out_le32(&ccsr_ahci->pp3c, AHCI_PORT_PHY_3_CFG); out_le32(&ccsr_ahci->pp3c, AHCI_PORT_PHY_3_CFG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment