diff options
| author | Arto Merilainen <amerilainen@nvidia.com> | 2014-10-15 10:39:15 -0400 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:48 -0400 |
| commit | 6bee4881908bae86bc8cf62fb263394ff15cc70d (patch) | |
| tree | 8ace15bad2e064ae7d6564866378af49e60067c9 /include/linux | |
| parent | 27c0a26950aff9f91e50e2228dd1227e98ebd28b (diff) | |
video: tegra: host: Support forcing engines on
This patch adds an interface to force devices into powered and
clocked state. The interface can be used to bypass power features
to debug the driver or hardware.
Bug 200043887
Change-Id: I18957ba56cec217df1c0574a4ad7e687d2757da0
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/557978
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvhost.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 4a53dcf9e..67ddd0a45 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h | |||
| @@ -85,6 +85,7 @@ struct sync_pt; | |||
| 85 | enum nvhost_power_sysfs_attributes { | 85 | enum nvhost_power_sysfs_attributes { |
| 86 | NVHOST_POWER_SYSFS_ATTRIB_CLOCKGATE_DELAY = 0, | 86 | NVHOST_POWER_SYSFS_ATTRIB_CLOCKGATE_DELAY = 0, |
| 87 | NVHOST_POWER_SYSFS_ATTRIB_POWERGATE_DELAY, | 87 | NVHOST_POWER_SYSFS_ATTRIB_POWERGATE_DELAY, |
| 88 | NVHOST_POWER_SYSFS_ATTRIB_FORCE_ON, | ||
| 88 | NVHOST_POWER_SYSFS_ATTRIB_MAX | 89 | NVHOST_POWER_SYSFS_ATTRIB_MAX |
| 89 | }; | 90 | }; |
| 90 | 91 | ||
| @@ -301,6 +302,9 @@ struct nvhost_device_data { | |||
| 301 | 302 | ||
| 302 | /* Actmon IRQ from hintstatus_r */ | 303 | /* Actmon IRQ from hintstatus_r */ |
| 303 | unsigned int actmon_irq; | 304 | unsigned int actmon_irq; |
| 305 | |||
| 306 | /* Is the device already forced on? */ | ||
| 307 | bool forced_on; | ||
| 304 | }; | 308 | }; |
| 305 | 309 | ||
| 306 | 310 | ||
