diff options
author | Tejal Kudav <tkudav@nvidia.com> | 2017-11-08 04:56:23 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-12 05:31:15 -0400 |
commit | 2114869a4084809be18a489dc44d1b8f28e66598 (patch) | |
tree | beb0b902d0c1424a9086a3d0f6ba04dfaebf13d0 /drivers/gpu/nvgpu/clk/clk_fll.h | |
parent | 1f4bbff6e068e4b718b69bea5b9a1c3c07f5c49a (diff) |
gpu: nvgpu: Update clk_fll interface as per chips_a
Two new members added to fll struct and code modified to support
GV100 VBIOS NAFLL tables
Add g->ops for getting vbios clk domains
JIRA NVGPUGV100-39
Change-Id: Iaabea893d55d44a272e2bce2b1d525b122cd36f5
Signed-off-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1594289
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Tested-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_fll.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_fll.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_fll.h b/drivers/gpu/nvgpu/clk/clk_fll.h index 481ca707..79ecf5e1 100644 --- a/drivers/gpu/nvgpu/clk/clk_fll.h +++ b/drivers/gpu/nvgpu/clk/clk_fll.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -61,10 +61,15 @@ struct fll_device { | |||
61 | u8 min_freq_vfe_idx; | 61 | u8 min_freq_vfe_idx; |
62 | u8 freq_ctrl_idx; | 62 | u8 freq_ctrl_idx; |
63 | u8 target_regime_id_override; | 63 | u8 target_regime_id_override; |
64 | bool b_skip_pldiv_below_dvco_min; | ||
65 | bool b_dvco_1x; | ||
64 | struct boardobjgrpmask_e32 lut_prog_broadcast_slave_mask; | 66 | struct boardobjgrpmask_e32 lut_prog_broadcast_slave_mask; |
65 | fll_lut_broadcast_slave_register *lut_broadcast_slave_register; | 67 | fll_lut_broadcast_slave_register *lut_broadcast_slave_register; |
66 | }; | 68 | }; |
67 | 69 | ||
70 | u32 nvgpu_clk_get_vbios_clk_domain_gv10x( u32 vbios_domain); | ||
71 | u32 nvgpu_clk_get_vbios_clk_domain_gp10x( u32 vbios_domain); | ||
72 | |||
68 | #define CLK_FLL_LUT_VF_NUM_ENTRIES(pclk) \ | 73 | #define CLK_FLL_LUT_VF_NUM_ENTRIES(pclk) \ |
69 | (pclk->avfs_fllobjs.lut_num_entries) | 74 | (pclk->avfs_fllobjs.lut_num_entries) |
70 | 75 | ||