From 6bee4881908bae86bc8cf62fb263394ff15cc70d Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Wed, 15 Oct 2014 17:39:15 +0300 Subject: 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 Reviewed-on: http://git-master/r/557978 Reviewed-by: Shridhar Rasal GVS: Gerrit_Virtual_Submit --- include/linux/nvhost.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') 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; enum nvhost_power_sysfs_attributes { NVHOST_POWER_SYSFS_ATTRIB_CLOCKGATE_DELAY = 0, NVHOST_POWER_SYSFS_ATTRIB_POWERGATE_DELAY, + NVHOST_POWER_SYSFS_ATTRIB_FORCE_ON, NVHOST_POWER_SYSFS_ATTRIB_MAX }; @@ -301,6 +302,9 @@ struct nvhost_device_data { /* Actmon IRQ from hintstatus_r */ unsigned int actmon_irq; + + /* Is the device already forced on? */ + bool forced_on; }; -- cgit v1.2.2