mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
As a part of refactoring this patch does the following *Move local struct to unit specific header file *Move nvgpu_pmu_clk_domain_freq_to_volt from clk.c to clk_domain.c *Move PMU specific struct to ucode_clk_inf.h *Merge content from nvgpu/clk.h to pmu/clk/clk.h *Update yaml file This will help to have arch consistency across all units. Change-Id: Ied5c6ee637e7fd5bbdee3f5bc3f6cf216454428a Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2333366 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
58 lines
2.0 KiB
C
58 lines
2.0 KiB
C
/*
|
|
* Copyright (c) 2016-2020, 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 NVGPU_CLK_VIN_H
|
|
#define NVGPU_CLK_VIN_H
|
|
|
|
#include <nvgpu/boardobj.h>
|
|
#include <nvgpu/boardobjgrp.h>
|
|
#include <nvgpu/boardobjgrp_e32.h>
|
|
|
|
struct nvgpu_vin_device {
|
|
struct boardobj super;
|
|
u8 id;
|
|
u8 volt_domain;
|
|
u8 volt_domain_vbios;
|
|
u8 por_override_mode;
|
|
u8 override_mode;
|
|
u32 flls_shared_mask;
|
|
vin_device_state_load *state_load;
|
|
};
|
|
|
|
struct vin_device_v20 {
|
|
struct nvgpu_vin_device super;
|
|
struct ctrl_clk_vin_device_info_data_v20 data;
|
|
};
|
|
struct nvgpu_avfsvinobjs {
|
|
struct boardobjgrp_e32 super;
|
|
u8 calibration_rev_vbios;
|
|
u8 calibration_rev_fused;
|
|
u8 version;
|
|
bool vin_is_disable_allowed;
|
|
};
|
|
int clk_vin_init_pmupstate(struct gk20a *g);
|
|
void clk_vin_free_pmupstate(struct gk20a *g);
|
|
int clk_pmu_vin_load(struct gk20a *g);
|
|
int clk_vin_sw_setup(struct gk20a *g);
|
|
int clk_vin_pmu_setup(struct gk20a *g);
|
|
#endif /* NVGPU_CLK_VIN_H */
|