summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pm-t3.c
diff options
context:
space:
mode:
authornaveenk <naveenk@nvidia.com>2012-08-14 15:26:45 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:32:13 -0700
commit134c6cf901787375cb1e48e7c01fda29ac01170c (patch)
treecea3fb8113d6e5a0ebdbf1a929d62ac157ff21c9 /arch/arm/mach-tegra/pm-t3.c
parent492231071f178099939426c3e9226b6f04a0a68b (diff)
HACK: Disable dpd spew messages on FPGA
Bug 1031496 Bug 1013917 Change-Id: I489e88dd3c3a2ddffc398dbfbdd2b415ce96233a Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com> Reviewed-on: http://git-master/r/124291 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: R8e148e1a28e49702516627480b533c049331d82f
Diffstat (limited to 'arch/arm/mach-tegra/pm-t3.c')
-rw-r--r--arch/arm/mach-tegra/pm-t3.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/pm-t3.c b/arch/arm/mach-tegra/pm-t3.c
index a99abe267064..5c9efc1b3873 100644
--- a/arch/arm/mach-tegra/pm-t3.c
+++ b/arch/arm/mach-tegra/pm-t3.c
@@ -560,9 +560,12 @@ void tegra_io_dpd_enable(struct tegra_io_dpd *hnd)
udelay(1);
dpd_status = readl(pmc + (APBDEV_PMC_IO_DPD_STATUS_0 +
hnd->io_dpd_reg_index * 8));
- if (!(dpd_status & (1 << hnd->io_dpd_bit)))
+ if (!(dpd_status & (1 << hnd->io_dpd_bit))) {
+#if !defined(CONFIG_TEGRA_FPGA_PLATFORM)
pr_info("Error: dpd%d enable failed, status=%#x\n",
(hnd->io_dpd_reg_index + 1), dpd_status);
+#endif
+ }
/* Sample register must be reset before next sample operation */
writel(0x0, pmc + PMC_DPD_SAMPLE);
spin_unlock(&tegra_io_dpd_lock);
@@ -587,9 +590,12 @@ void tegra_io_dpd_disable(struct tegra_io_dpd *hnd)
hnd->io_dpd_reg_index * 8));
dpd_status = readl(pmc + (APBDEV_PMC_IO_DPD_STATUS_0 +
hnd->io_dpd_reg_index * 8));
- if (dpd_status & (1 << hnd->io_dpd_bit))
+ if (dpd_status & (1 << hnd->io_dpd_bit)) {
+#if !defined(CONFIG_TEGRA_FPGA_PLATFORM)
pr_info("Error: dpd%d disable failed, status=%#x\n",
(hnd->io_dpd_reg_index + 1), dpd_status);
+#endif
+ }
spin_unlock(&tegra_io_dpd_lock);
return;
}