From 004a1880ed80f3b384cf3d0d37e0a58eff29fcaf Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Fri, 23 Oct 2015 12:02:55 -0700 Subject: 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 Reviewed-on: http://git-master/r/823012 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/therm_gk20a.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/therm_gk20a.h') 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 @@ /* - * Copyright (c) 2011 - 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011 - 2015, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -16,13 +16,8 @@ #ifndef THERM_GK20A_H #define THERM_GK20A_H -/* priority for EXT_THERM_0 event set to highest */ -#define NV_THERM_EVT_EXT_THERM_0_INIT 0x3000100 -#define NV_THERM_EVT_EXT_THERM_1_INIT 0x2000200 -#define NV_THERM_EVT_EXT_THERM_2_INIT 0x1000300 -/* configures the thermal events that may cause clock slowdown */ -#define NV_THERM_USE_A_INIT 0x7 +struct gpu_ops; +void gk20a_init_therm_ops(struct gpu_ops *gops); int gk20a_init_therm_support(struct gk20a *g); - #endif /* THERM_GK20A_H */ -- cgit v1.2.2