From 46477494b2f5d566a0c133746af00a3da4ee6b90 Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Tue, 11 Sep 2018 13:23:40 -0700 Subject: gpu: nvgpu: vgpu: restructure vgpu clk implementation Move OS agnostic parts of vgpu clk code out of os/linux specific path. This includes implementation sending rpc commands to RM Server. Move Linux specific vgpu clk code to platform vgpu files keeping it consistent with native implementation. Bug 2363882 Jira EVLR-3254 Change-Id: I0aae014ef16415bb356c81e9bfd76bc65206d9fd Signed-off-by: Aparna Das Reviewed-on: https://git-master.nvidia.com/r/1820674 Reviewed-by: mobile promotions Tested-by: mobile promotions --- .../gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 drivers/gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h (limited to 'drivers/gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h') diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h b/drivers/gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h new file mode 100644 index 00000000..fef346d0 --- /dev/null +++ b/drivers/gpu/nvgpu/os/linux/vgpu/platform_vgpu_tegra.h @@ -0,0 +1,24 @@ +/* + * 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 . + */ + +#ifndef _VGPU_PLATFORM_H_ +#define _VGPU_PLATFORM_H_ + +long vgpu_plat_clk_round_rate(struct device *dev, unsigned long rate); +int vgpu_plat_clk_get_freqs(struct device *dev, unsigned long **freqs, + int *num_freqs); +int vgpu_plat_clk_cap_rate(struct device *dev, unsigned long rate); +#endif -- cgit v1.2.2