diff options
author | Haribabu Narayanan <hnarayanan@nvidia.com> | 2014-06-02 18:39:57 -0700 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2014-09-16 21:33:28 -0700 |
commit | a88ce700174d1957f7378f07ceb1f3c1e46cae98 (patch) | |
tree | 8549516baaa12f90b1932d4f574976ff3ce1acb7 /include | |
parent | 1eb27a70ed42f6594a84c4c90cd04f2189241c1a (diff) |
arm: tegra: power: add reference counters for pcie
Due to HW Bug 1320346, both XUSB and PCIE modules need to control powergating
on PCIE block. Implement reference counter mechanism so that powergating is
done only when neither of these two drivers are active.
Bug 1451279
Bug 1455032
Bug 200027067
Change-Id: I6866ba0fb47433e211360b722abbb1b2c1a05c35
Reviewed-on: http://git-master/r/418060
(cherry picked from commit 70be55b824632252be36f6ee0d495d4c0f4e507c)
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/498659
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra-powergate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tegra-powergate.h b/include/linux/tegra-powergate.h index 41be3ed499cd..b98c61ee04d0 100644 --- a/include/linux/tegra-powergate.h +++ b/include/linux/tegra-powergate.h @@ -89,6 +89,7 @@ #define TEGRA_IS_DISP_POWERGATE_ID(id) (((id) == TEGRA_POWERGATE_DISA) || \ ((id) == TEGRA_POWERGATE_DISB)) #define TEGRA_IS_VENC_POWERGATE_ID(id) ((id) == TEGRA_POWERGATE_VENC) +#define TEGRA_IS_PCIE_POWERGATE_ID(id) ((id) == TEGRA_POWERGATE_PCIE) #endif int __init tegra_powergate_init(void); |