mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
clk_gp106.h and clk_gv100.h define conflicting symbols, which prevent including them both at the same time. One of the conflicting structs is namemap_cfg, which has different definitions in clk_gp106.h and include/nvgpu/clk.h. Move all constants used only by clk_*.c to be defined there, delete the extra namemap_cfg structure definition, and modify code to cope with the unified namemap_cfg. JIRa NVGPU-596 Change-Id: Id68919da4567ec1507eda0cfaa19bf047a7bfc59 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1945285 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
#ifndef CLK_GP106_H
|
|
#define CLK_GP106_H
|
|
|
|
#include <nvgpu/lock.h>
|
|
#include <nvgpu/clk.h>
|
|
|
|
u32 gp106_get_rate_cntr(struct gk20a *g, struct namemap_cfg *c);
|
|
int gp106_init_clk_support(struct gk20a *g);
|
|
u32 gp106_crystal_clk_hz(struct gk20a *g);
|
|
unsigned long gp106_clk_measure_freq(struct gk20a *g, u32 api_domain);
|
|
int gp106_suspend_clk_support(struct gk20a *g);
|
|
int gp106_clk_domain_get_f_points(
|
|
struct gk20a *g,
|
|
u32 clkapidomain,
|
|
u32 *pfpointscount,
|
|
u16 *pfreqpointsinmhz);
|
|
|
|
#endif /* CLK_GP106_H */
|