From c32c86342e90cf7d85114f3a40853bc9ba0e7540 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Tue, 6 Jun 2017 18:58:17 -0700 Subject: gpu: nvgpu: g106 hal for mclk switching move mclk switching to gp106 hal. Bug 1921082 JIRA EVLR-1269 Change-Id: I97812b871384460bec88fddac0f6a326df12fc45 Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1499393 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h (limited to 'drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h') diff --git a/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h b/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h new file mode 100644 index 00000000..bfe4da5a --- /dev/null +++ b/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.h @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2017, 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. +*/ + +#ifndef _PMU_MCLK_GP106_H_ +#define _PMU_MCLK_GP106_H_ + +#define GP106_MEM_CONFIG_GDDR5_PG418 0 +#define GP106_MEM_CONFIG_GDDR5_PG419 1 + +extern int gp106_mclk_init(struct gk20a *g); +extern void gp106_mclk_deinit(struct gk20a *g); +extern int gp106_mclk_change(struct gk20a *g, u16 val); + +#endif -- cgit v1.2.2