summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/therm_gk20a.h
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2015-10-23 15:02:55 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-10-27 18:42:08 -0400
commit004a1880ed80f3b384cf3d0d37e0a58eff29fcaf (patch)
treeb1f55beabeeb3b9a411ff609b7c6c4984aae40c6 /drivers/gpu/nvgpu/gk20a/therm_gk20a.h
parent057c6334f7f72071bc87a1793b688b34add7c681 (diff)
gpu: nvgpu: update thermal programming
Add required fileds and values for thermal slow-down settings in thermal header file and implemented chip specific thermal register programming Reviewed-on: http://git-master/r/822199 (cherry picked from commit 9e8a745b8295af002b9780c83caa8dc7b22cc737) Change-Id: I016b18ed230fa6c104eada2e166ccd1a5f2ace36 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/823012 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/therm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/therm_gk20a.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.h b/drivers/gpu/nvgpu/gk20a/therm_gk20a.h
index e670ec0e..80671d68 100644
--- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2011 - 2014, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2011 - 2015, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -16,13 +16,8 @@
16#ifndef THERM_GK20A_H 16#ifndef THERM_GK20A_H
17#define THERM_GK20A_H 17#define THERM_GK20A_H
18 18
19/* priority for EXT_THERM_0 event set to highest */ 19struct gpu_ops;
20#define NV_THERM_EVT_EXT_THERM_0_INIT 0x3000100 20void gk20a_init_therm_ops(struct gpu_ops *gops);
21#define NV_THERM_EVT_EXT_THERM_1_INIT 0x2000200
22#define NV_THERM_EVT_EXT_THERM_2_INIT 0x1000300
23/* configures the thermal events that may cause clock slowdown */
24#define NV_THERM_USE_A_INIT 0x7
25 21
26int gk20a_init_therm_support(struct gk20a *g); 22int gk20a_init_therm_support(struct gk20a *g);
27
28#endif /* THERM_GK20A_H */ 23#endif /* THERM_GK20A_H */