diff options
author | Simone Willett <swillett@nvidia.com> | 2012-02-15 14:22:37 -0800 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-16 05:07:10 -0800 |
commit | ae1f9efe299b2f24680b04e429c76dec3240b60d (patch) | |
tree | 3340a6e656ec9c6e920b534fb6a4413fc8408afd /include | |
parent | 681c2688fc5a7001a2c0e568790e04be67552efd (diff) |
Revert "video: tegra: host: use runtime pm for clock management"
This reverts commit 961c60fe7213d92793d6072abc16f58721a33fed
Change-Id: I8ef0fbaee30e94c78b8df609f729953fee6d1583
Reviewed-on: http://git-master/r/84135
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvhost.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 9002620a834a..55b75d048791 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -38,6 +38,13 @@ struct nvhost_clock { long default_rate; }; +enum nvhost_device_powerstate_t { + NVHOST_POWER_STATE_DEINIT, + NVHOST_POWER_STATE_RUNNING, + NVHOST_POWER_STATE_CLOCKGATED, + NVHOST_POWER_STATE_POWERGATED +}; + struct nvhost_device { const char *name; /* Device name */ struct device dev; /* Linux device struct */ @@ -67,7 +74,8 @@ struct nvhost_device { int num_clks; /* Number of clocks opened for dev */ struct clk *clk[NVHOST_MODULE_MAX_CLOCKS]; struct mutex lock; /* Power management lock */ - bool powered; /* Current power state */ + int powerstate; /* Current power state */ + int refcount; /* Number of tasks active */ wait_queue_head_t idle_wq; /* Work queue for idle */ struct list_head client_list; /* List of clients and rate requests */ |