diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-30 01:50:26 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-27 17:30:43 -0500 |
commit | 7932568b7fe9e16b2b83bc58b2b3686c0d5e52d4 (patch) | |
tree | 80cc69c133cb1ecfa04d245199e617b0522deb37 /drivers/gpu/nvgpu/include | |
parent | 72b9731c7c4eae60a8c3d37dc9246a5cc521c392 (diff) |
gpu: nvgpu: vgpu: avoid referring uapi header when set powergate mode
Defined powergate mode in tegra_vgpu.h.
Jira EVLR-2364
Change-Id: Id7dcaeffcf0dd8394b4eac6601152720fa382e8c
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649946
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 882dd342..a7a877ff 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | |||
@@ -425,6 +425,8 @@ struct tegra_vgpu_get_timestamps_zipper_params { | |||
425 | u32 source_id; | 425 | u32 source_id; |
426 | }; | 426 | }; |
427 | 427 | ||
428 | #define TEGRA_VGPU_POWERGATE_MODE_ENABLE 1 | ||
429 | #define TEGRA_VGPU_POWERGATE_MODE_DISABLE 2 | ||
428 | struct tegra_vgpu_set_powergate_params { | 430 | struct tegra_vgpu_set_powergate_params { |
429 | u32 mode; | 431 | u32 mode; |
430 | }; | 432 | }; |