summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-01-20 19:05:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-31 19:23:23 -0500
commitd2de17bfb0eb24ac020e2dfa3ce0dd4f9d0332f9 (patch)
tree79b9bd6e1624a096fb160f5aec49e4b1f81efb0a /include
parentdb41ae567c21589c59804bf5a41ef3b15ba9984e (diff)
gpu: nvgpu: prepare MCLK/GPCLK enumeration change
GPC2CLK has been replaced with GPCCLK on user API. Remove related definition from kernel API. GPCLCK and MCLK are currently assigned EQU values in kernel API. We want to move to a simple enumeration as used in nvrm_gpu. During the transition, an alias value will be defined for each clock, and kernel will accept both. Jira DNVGPU-210 Jira DNVGPU-211 Change-Id: I944fe78be9f810279f7a69964be7cda9b9c8d40d Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1292593 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index f5c70f2d..1dce8803 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -537,14 +537,12 @@ struct nvgpu_gpu_alloc_vidmem_args {
537 }; 537 };
538}; 538};
539 539
540/* Main graphics core clock */
541#define NVGPU_GPU_CLK_DOMAIN_GPCCLK (0x10000000)
542/* Memory clock */ 540/* Memory clock */
543#define NVGPU_GPU_CLK_DOMAIN_MCLK (0x00000010) 541#define NVGPU_GPU_CLK_DOMAIN_MCLK (0)
544/* Main graphics core clock x 2 542#define NVGPU_GPU_CLK_DOMAIN_MCLK_ALIAS (0x00000010)
545 * deprecated, use NVGPU_GPU_CLK_DOMAIN_GPCCLK instead 543/* Main graphics core clock */
546 */ 544#define NVGPU_GPU_CLK_DOMAIN_GPCCLK (1)
547#define NVGPU_GPU_CLK_DOMAIN_GPC2CLK (0x00010000) 545#define NVGPU_GPU_CLK_DOMAIN_GPCCLK_ALIAS (0x10000000)
548 546
549struct nvgpu_gpu_clk_range { 547struct nvgpu_gpu_clk_range {
550 548