Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ahci: qoriq: Adjust the default register values on ls1043a

Updated the registers' values to enhance SATA performance and
reliability.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Tang Yuantian and committed by
Tejun Heo
ef0cc7fe f893180b

+8
+8
drivers/ata/ahci_qoriq.c
··· 39 39 #define AHCI_PORT_PHY_4_CFG 0x00480811 40 40 #define AHCI_PORT_PHY_5_CFG 0x192c96a4 41 41 #define AHCI_PORT_TRANS_CFG 0x08000025 42 + #define LS1043A_PORT_PHY2 0x28184d1f 43 + #define LS1043A_PORT_PHY3 0x0e081509 42 44 43 45 #define SATA_ECC_DISABLE 0x00020000 44 46 ··· 161 159 break; 162 160 163 161 case AHCI_LS1043A: 162 + writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); 163 + writel(LS1043A_PORT_PHY2, reg_base + PORT_PHY2); 164 + writel(LS1043A_PORT_PHY3, reg_base + PORT_PHY3); 165 + writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); 166 + break; 167 + 164 168 case AHCI_LS2080A: 165 169 writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); 166 170 break;