summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTang Yuantian <Yuantian.Tang@freescale.com>2015-12-16 13:43:49 +0800
committerTejun Heo <tj@kernel.org>2015-12-16 10:24:35 -0500
commitef0cc7fef4721aa19663da7475c8b862f0a35e0b (patch)
tree0037a355d6fa3cdd3d25346974296379792f2d33 /drivers/ata
parentf893180b79f6ada44068e4fe764eb2de70ee6bea (diff)
downloadtalos-obmc-linux-ef0cc7fef4721aa19663da7475c8b862f0a35e0b.tar.gz
talos-obmc-linux-ef0cc7fef4721aa19663da7475c8b862f0a35e0b.zip
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_qoriq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c
index d0f9de96e4ea..4d613f8cb966 100644
--- a/drivers/ata/ahci_qoriq.c
+++ b/drivers/ata/ahci_qoriq.c
@@ -39,6 +39,8 @@
#define AHCI_PORT_PHY_4_CFG 0x00480811
#define AHCI_PORT_PHY_5_CFG 0x192c96a4
#define AHCI_PORT_TRANS_CFG 0x08000025
+#define LS1043A_PORT_PHY2 0x28184d1f
+#define LS1043A_PORT_PHY3 0x0e081509
#define SATA_ECC_DISABLE 0x00020000
@@ -159,6 +161,12 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv)
break;
case AHCI_LS1043A:
+ writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1);
+ writel(LS1043A_PORT_PHY2, reg_base + PORT_PHY2);
+ writel(LS1043A_PORT_PHY3, reg_base + PORT_PHY3);
+ writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS);
+ break;
+
case AHCI_LS2080A:
writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1);
break;
OpenPOWER on IntegriCloud