diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-05-04 05:44:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-18 02:34:45 -0400 |
commit | 5903094ffeaca10fd0f49c5eae41e2d511f940f6 (patch) | |
tree | 50d55a9bdcc2237236ed825cbcef61a848dab257 /drivers/gpu/nvgpu/include | |
parent | c06c2c52ce4991f885fd30f76236038ed4933a3a (diff) |
gpu: nvgpu: add conversion function for clk domain
Add a conversion function for NVGPU_GPU_CLK_DOMAIN_*
defines present in uapi header.
This enables movement of related code to the OS agnostic
clk_arb.c
Jira VQRM-3741
Change-Id: I922d1cfb91d6a5dda644cf418f2f3815d975fcfd
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1709653
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/clk_arb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h index 06136c02..e91a0dad 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h +++ b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | |||
@@ -102,6 +102,16 @@ struct nvgpu_clk_session; | |||
102 | #define NVGPU_POLLRDNORM (1 << 3) | 102 | #define NVGPU_POLLRDNORM (1 << 3) |
103 | #define NVGPU_POLLHUP (1 << 4) | 103 | #define NVGPU_POLLHUP (1 << 4) |
104 | 104 | ||
105 | /* NVGPU_CLK_DOMAIN_* defines equivalent to NVGPU_GPU_CLK_DOMAIN_* | ||
106 | * defines in uapi header | ||
107 | */ | ||
108 | /* Memory clock */ | ||
109 | #define NVGPU_CLK_DOMAIN_MCLK (0) | ||
110 | /* Main graphics core clock */ | ||
111 | #define NVGPU_CLK_DOMAIN_GPCCLK (1) | ||
112 | |||
113 | #define NVGPU_CLK_DOMAIN_MAX (NVGPU_CLK_DOMAIN_GPCCLK) | ||
114 | |||
105 | #define clk_arb_dbg(g, fmt, args...) \ | 115 | #define clk_arb_dbg(g, fmt, args...) \ |
106 | do { \ | 116 | do { \ |
107 | nvgpu_log(g, gpu_dbg_clk_arb, \ | 117 | nvgpu_log(g, gpu_dbg_clk_arb, \ |