diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-08-27 14:41:43 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:44:23 -0700 |
commit | 1fdd4a4c2c7a238477beb852d8b7c98bb6e50980 (patch) | |
tree | 9c15a7c50772947428a9628a36c72669aba96621 /drivers/video/tegra/host/nvhost_acm.c | |
parent | a83f62ce4cf6d2d7c12b30a134f5596ebe659605 (diff) |
video: tegra: host: Merge runtime PM code
Merge enabling of runtime to common code in
nvhost_module_init().
Change-Id: Iabd21b6b9c1b89d9d2fea593e693acbb29445d0b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/267115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/nvhost_acm.c')
-rw-r--r-- | drivers/video/tegra/host/nvhost_acm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c index 41c009efb16a..409ada5b5f85 100644 --- a/drivers/video/tegra/host/nvhost_acm.c +++ b/drivers/video/tegra/host/nvhost_acm.c @@ -530,6 +530,14 @@ int nvhost_module_init(struct platform_device *dev) goto fail_powergatedelay; } + if (pdata->clockgate_delay) { + pm_runtime_set_autosuspend_delay(&dev->dev, + pdata->clockgate_delay); + pm_runtime_use_autosuspend(&dev->dev); + } + pm_runtime_enable(&dev->dev); + if (!pm_runtime_enabled(&dev->dev)) + nvhost_module_enable_clk(&dev->dev); return 0; fail_powergatedelay: |