diff options
Diffstat (limited to 'include/linux/nvhost.h')
-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 */ |