diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c index 5000db7f..50154617 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c | |||
@@ -27,6 +27,17 @@ | |||
27 | #include "gk20a.h" | 27 | #include "gk20a.h" |
28 | 28 | ||
29 | /* | 29 | /* |
30 | * gk20a_generic_is_railgated() | ||
31 | * | ||
32 | * Check status of gk20a power rail | ||
33 | */ | ||
34 | |||
35 | static bool gk20a_generic_is_railgated(struct platform_device *pdev) | ||
36 | { | ||
37 | return !tegra_powergate_is_powered(TEGRA_POWERGATE_GPU); | ||
38 | } | ||
39 | |||
40 | /* | ||
30 | * gk20a_generic_railgate() | 41 | * gk20a_generic_railgate() |
31 | * | 42 | * |
32 | * Gate (disable) gk20a power rail | 43 | * Gate (disable) gk20a power rail |
@@ -108,6 +119,7 @@ static int gk20a_generic_late_probe(struct platform_device *dev) | |||
108 | struct gk20a_platform gk20a_generic_platform = { | 119 | struct gk20a_platform gk20a_generic_platform = { |
109 | .railgate = gk20a_generic_railgate, | 120 | .railgate = gk20a_generic_railgate, |
110 | .unrailgate = gk20a_generic_unrailgate, | 121 | .unrailgate = gk20a_generic_unrailgate, |
122 | .is_railgated = gk20a_generic_is_railgated, | ||
111 | 123 | ||
112 | .probe = gk20a_generic_probe, | 124 | .probe = gk20a_generic_probe, |
113 | .late_probe = gk20a_generic_late_probe, | 125 | .late_probe = gk20a_generic_late_probe, |