mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: add turing support
Add Turing specific common, unit, hardware header files Make all the Makefile and Makefile.sources changes to compile all Turing specific code Bug 200454999 Change-Id: I62ebff5c078b4b8817fc83ea0e4ee3cfffe668dc Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1917983 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Abdul Salam
parent
2b4cd797b4
commit
51244d6112
35
drivers/gpu/nvgpu/os/linux/os_ops_tu104.c
Normal file
35
drivers/gpu/nvgpu/os/linux/os_ops_tu104.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 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,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "os/linux/os_linux.h"
|
||||
|
||||
#include "os/linux/debug_therm_gp106.h"
|
||||
#include "os/linux/debug_clk_gv100.h"
|
||||
|
||||
static struct nvgpu_os_linux_ops tu104_os_linux_ops = {
|
||||
.therm = {
|
||||
.init_debugfs = gp106_therm_init_debugfs,
|
||||
},
|
||||
.clk = {
|
||||
.init_debugfs = gv100_clk_init_debugfs,
|
||||
},
|
||||
};
|
||||
|
||||
void nvgpu_tu104_init_os_ops(struct nvgpu_os_linux *l)
|
||||
{
|
||||
l->ops.therm = tu104_os_linux_ops.therm;
|
||||
l->ops.clk = tu104_os_linux_ops.clk;
|
||||
}
|
||||
Reference in New Issue
Block a user