mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Implement get_rate/set_rate as GPU op
Move clock APIs from gk20a_platform to gpu_ops. At the same time allow use of internal get_rate/set_rate for querying both GPCCLK and PWRCLK on iGPU. At the same time we can replace calls to clk framework with the new HAL and drop direct dependency to clk framework. gp10b ops were replaced as a whole at HAL initialization. That replaces anything set in platform probe stage, so reduce that to touch only clock gating regs. Change-Id: Iaf219b1f000d362dbf397d45832f52d25463b31c Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1300113 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
686c3b701f
commit
589d6385b1
@@ -196,11 +196,8 @@ struct gk20a_platform {
|
||||
unsigned long **freqs, int *num_freqs);
|
||||
|
||||
/* clk related supported functions */
|
||||
unsigned long (*clk_get_rate)(struct device *dev);
|
||||
long (*clk_round_rate)(struct device *dev,
|
||||
unsigned long rate);
|
||||
int (*clk_set_rate)(struct device *dev,
|
||||
unsigned long rate);
|
||||
|
||||
/* Called to register GPCPLL with common clk framework */
|
||||
int (*clk_register)(struct gk20a *g);
|
||||
|
||||
Reference in New Issue
Block a user