summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/dev.h
diff options
context:
space:
mode:
authorThierry Reding2017-03-21 08:54:22 +0100
committerThierry Reding2017-04-05 18:11:50 +0200
commitb386c6b73ac6c2a9a2f1201d055ab65cc19890a2 (patch)
treec90708c4b2f53f04bd56f0f33c195e01ce486102 /drivers/gpu/host1x/dev.h
parentgpu: host1x: Sort includes alphabetically (diff)
downloadkernel-qcow2-linux-b386c6b73ac6c2a9a2f1201d055ab65cc19890a2.tar.gz
kernel-qcow2-linux-b386c6b73ac6c2a9a2f1201d055ab65cc19890a2.tar.xz
kernel-qcow2-linux-b386c6b73ac6c2a9a2f1201d055ab65cc19890a2.zip
gpu: host1x: Support module reset
Newer versions of Tegra come with early boot software that aggressively puts various modules in reset. Add support to the host1x driver to take the module out of reset on probe, and assert reset on removal. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.h')
-rw-r--r--drivers/gpu/host1x/dev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h
index 561c5776cafb..229d08b6a45e 100644
--- a/drivers/gpu/host1x/dev.h
+++ b/drivers/gpu/host1x/dev.h
@@ -21,6 +21,7 @@
#include <linux/iommu.h>
#include <linux/iova.h>
#include <linux/platform_device.h>
+#include <linux/reset.h>
#include "cdma.h"
#include "channel.h"
@@ -109,6 +110,7 @@ struct host1x {
struct host1x_syncpt_base *bases;
struct device *dev;
struct clk *clk;
+ struct reset_control *rst;
struct iommu_domain *domain;
struct iova_domain iova;