armv8: fsl-lsch2: adjust sata parameter
authorTang Yuantian <Yuantian.Tang@nxp.com>
Mon, 8 Aug 2016 07:07:19 +0000 (15:07 +0800)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Oct 2016 16:52:35 +0000 (09:52 -0700)
The default values for Port Phy2Cfg register and
Port Phy3Cfg register are better, no need to overwrite them.

Signed-off-by: Tang Yuantian <yuantian.tang@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/include/asm/arch-fsl-layerscape/soc.h

index 463d1e30d2c3966b1b858c28af43f7d9535a25d3..4b425b8b6d297b8ca11e3ca277acbeed18087655 100644 (file)
@@ -233,8 +233,6 @@ int sata_init(void)
        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->pp2c, AHCI_PORT_PHY_2_CFG);
-       out_le32(&ccsr_ahci->pp3c, AHCI_PORT_PHY_3_CFG);
        out_le32(&ccsr_ahci->ptc, AHCI_PORT_TRANS_CFG);
 
        ahci_init((void __iomem *)CONFIG_SYS_SATA);
index 4512732f79908a24752f85f13784f619dc1b3aaf..0729b7f75dce2c0b221d59113142c4fa63a0fc6d 100644 (file)
@@ -60,8 +60,6 @@ struct cpu_type {
 
 /* ahci port register default value */
 #define AHCI_PORT_PHY_1_CFG    0xa003fffe
-#define AHCI_PORT_PHY_2_CFG    0x28184d1f
-#define AHCI_PORT_PHY_3_CFG    0x0e081509
 #define AHCI_PORT_TRANS_CFG    0x08000029
 
 /* AHCI (sata) register map */