summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2015-12-08 10:51:02 +0530
committerMatthew Pedro <mapedro@nvidia.com>2015-12-10 21:29:07 -0800
commitc4e6445c32e70df835849e129cc52bdb5aa3d7f6 (patch)
treee600c593525e9f51f94091973545d15bab110e40 /drivers/platform
parentfa425425dc12dbb8266354307244edb3b962fc06 (diff)
tegra: ictlr: clear error status register
Clear error status register during init Bug 1709814 Change-Id: I348526828015c84027b647bc728355ac9271a5fe Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/842868 Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/tegra/hier_ictlr/hier_ictlr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/platform/tegra/hier_ictlr/hier_ictlr.c b/drivers/platform/tegra/hier_ictlr/hier_ictlr.c
index 65999eeeb128..0720b5d0e679 100644
--- a/drivers/platform/tegra/hier_ictlr/hier_ictlr.c
+++ b/drivers/platform/tegra/hier_ictlr/hier_ictlr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@
#define MSELECT_TIMEOUT_TIMER_0 0x5c
#define MSELECT_ERROR_STATUS_0 0x60
#define MSELECT_DEFAULT_TIMEOUT 0xFFFFFF
+#define MSELECT_ERROR_STATUS_CLEAR 0x3FF
static irqreturn_t tegra_hier_ictlr_irq_handler(int irq, void *data)
{
@@ -126,6 +127,9 @@ static int tegra_hier_ictlr_mselect_init(struct platform_device *pdev,
tegra_hier_ictlr_set_mselect_timeout(ictlr, MSELECT_DEFAULT_TIMEOUT);
+ /*clear error status register */
+ writel(MSELECT_ERROR_STATUS_CLEAR,
+ ictlr->mselect_base + MSELECT_ERROR_STATUS_0);
reg = readl(ictlr->mselect_base + MSELECT_CONFIG_0);
writel(reg |
((1 << MSELECT_CONFIG_0_READ_TIMEOUT_EN_SLAVE0_SHIFT) |