mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Reactor clk_fll unit
As a part of refactor move struct nvgpu_avfsfllobjs from public header to private header. This will help to have arch consistency across all units. Use public functions to fetch the data across other units. NVGPU-4690 Change-Id: I73a750695c2ae7d3e46d1d692d10e40f13ec3cb3 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/#/c/linux-nvgpu/+/2326675/ (cherry picked from commit 41e374461da5dc9e2b4ac67a0855fd8dd20e1450) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2328538 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
81b14ef5b1
commit
b029f3b2b0
@@ -53,8 +53,8 @@ static int vftable_show(struct seq_file *s, void *unused)
|
||||
u32 voltage_min_uv, voltage_step_size_uv;
|
||||
u32 gpcclk_clkmhz = 0, gpcclk_voltuv = 0;
|
||||
|
||||
voltage_min_uv = g->pmu->clk_pmu->avfs_fllobjs->lut_min_voltage_uv;
|
||||
voltage_step_size_uv = g->pmu->clk_pmu->avfs_fllobjs->lut_step_size_uv;
|
||||
voltage_min_uv = nvgpu_pmu_clk_fll_get_lut_step_size(g->pmu->clk_pmu);
|
||||
voltage_step_size_uv = nvgpu_pmu_clk_fll_get_lut_step_size(g->pmu->clk_pmu);
|
||||
|
||||
for (index = 0; index < CTRL_CLK_LUT_NUM_ENTRIES_GV10x; index++) {
|
||||
gpcclk_voltuv = voltage_min_uv + index * voltage_step_size_uv;
|
||||
|
||||
Reference in New Issue
Block a user