diff options
author | Preetham Chandru R <pchandru@nvidia.com> | 2015-02-23 12:56:43 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2015-05-13 12:37:32 -0700 |
commit | 72a548771f7f83199a3be0a109f3233725249855 (patch) | |
tree | 2b89f2bced6b59e7c4a2567fc80c57aa700e64fb /drivers | |
parent | 02bf2327ba7282600a1ab91b167f8df2f6410b83 (diff) |
ata: ahci: increase L2P FIFO Depth
Bug 1592893
Change-Id: Iaa9c0673c928ce4ecaf9b374b997012522e88035
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/711902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/ahci-tegra.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c index e9ad38e5861c..08cccf357584 100644 --- a/drivers/ata/ahci-tegra.c +++ b/drivers/ata/ahci-tegra.c @@ -1,7 +1,7 @@ /* * ahci-tegra.c - AHCI SATA support for TEGRA AHCI device * - * Copyright (c) 2011-2014, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2011-2015, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -310,6 +310,11 @@ static u32 tegra_ahci_idle_time = TEGRA_AHCI_DEFAULT_IDLE_TIME; #define T_SATA0_NVOOB_SQUELCH_FILTER_LENGTH_SHIFT 26 #define T_SATA0_NVOOB_SQUELCH_FILTER_LENGTH_MASK (3 << 26) +#define T_SATA0_FIFO_0 0x170 +#define T_SATA0_FIFO_0_L2P_FIFO_DEPTH (0x7 << 12) +#define T_SATA0_FIFO_0_L2P_FIFO_DEPTH_MASK (0xf << 12) + + #define PXSSTS_DEVICE_DETECTED (1 << 0) #ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE @@ -1107,6 +1112,11 @@ static int tegra_ahci_controller_init(struct tegra_ahci_host_priv *tegra_hpriv, val |= (3 << T_SATA0_NVOOB_SQUELCH_FILTER_LENGTH_SHIFT); scfg_writel(val, T_SATA0_NVOOB); + val = scfg_readl(T_SATA0_FIFO_0); + val = (val & ~T_SATA0_FIFO_0_L2P_FIFO_DEPTH_MASK) | + T_SATA0_FIFO_0_L2P_FIFO_DEPTH; + scfg_writel(val, T_SATA0_FIFO_0); + /* * WAR: Before enabling SATA PLL shutdown, lockdet needs to be ignored. * To ignore lockdet, T_SATA0_DBG0_OFFSET register bit 10 needs to |