diff options
author | Sumit Bhattacharya <sumitb@nvidia.com> | 2011-09-28 22:18:46 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:16 -0800 |
commit | d7e091608521465c0484d12052e24b59c5f28235 (patch) | |
tree | de7226adcd1e4f94f2da5717574a46aa246a03e5 /sound/soc/tegra/tegra30_ahub.h | |
parent | 1bdb0af1054890a367f73899c163944c1a40aaba (diff) |
ASoC: Tegra: Modifiy I2s and AHUB clock management
Remove redundant ref counting for I2s and AHUB clocks.
For Tegra30 enable AHUB clocks before I2s registers are accessed.
Disable clocks when they are not in use.
Bug 872652
Change-Id: I7ec4e45cecd0391d0b5a2765214d6c03fa5cc339
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55005
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Rebase-Id: R886c4a1a472c6b68240f2899a0b0be94c7ac9966
Diffstat (limited to 'sound/soc/tegra/tegra30_ahub.h')
-rw-r--r-- | sound/soc/tegra/tegra30_ahub.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_ahub.h b/sound/soc/tegra/tegra30_ahub.h index 76a6b101b468..cac80aa93e16 100644 --- a/sound/soc/tegra/tegra30_ahub.h +++ b/sound/soc/tegra/tegra30_ahub.h @@ -454,6 +454,9 @@ enum tegra30_ahub_rxcif { TEGRA30_AHUB_RXCIF_SPDIF_RX1, }; +extern void tegra30_ahub_enable_clocks(void); +extern void tegra30_ahub_disable_clocks(void); + extern int tegra30_ahub_allocate_rx_fifo(enum tegra30_ahub_rxcif *rxcif, unsigned long *fiforeg, unsigned long *reqsel); @@ -476,7 +479,6 @@ struct tegra30_ahub { struct device *dev; struct clk *clk_d_audio; struct clk *clk_apbif; - int clk_refs; resource_size_t apbif_addr; void __iomem *apbif_regs; void __iomem *audio_regs; |