diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-07-01 03:12:29 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:23 -0400 |
commit | c230159665083e23ccc51fb2f98e2f190647c6e1 (patch) | |
tree | 6dea049cd4723082366def24bb9988ed9e8ba5fa /drivers | |
parent | 75e334fceb5605689db18ab93bb9772370f53b52 (diff) |
gpu: nvgpu: Update generic platform
This patch adds .is_railgated() callback for the generic gpu platform.
Change-Id: Ief13a6fba82b376aafbe861e8f3823a19bb7f679
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/433059
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers')
-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, |