Re: [PATCH v6 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-06-01 Thread Sui Jingfeng
Hi, On 2023/6/1 02:07, Lucas Stach wrote: +static int etnaviv_gpu_clk_get(struct etnaviv_gpu *gpu) +{ + struct device *dev = gpu->dev; + + if (gpu->no_clk) + return 0; + + gpu->clk_reg = devm_clk_get_optional(dev, "reg"); + DBG("clk_reg: %p", gpu->clk_reg);

Re: [PATCH v6 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-06-01 Thread Sui Jingfeng
Hi, On 2023/6/1 02:07, Lucas Stach wrote: Am Mittwoch, dem 31.05.2023 um 00:06 +0800 schrieb Sui Jingfeng: Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI gpu. So don't rage quit if there is no CLK subsystem. For

Re: [PATCH v6 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-05-31 Thread Lucas Stach
Am Mittwoch, dem 31.05.2023 um 00:06 +0800 schrieb Sui Jingfeng: > Because it is also platform-dependent, there are environments where don't > have CLK subsystem support, for example, discreted PCI gpu. So don't rage > quit if there is no CLK subsystem. > > For the GPU in LS7a1000 and LS2k2000, th

[PATCH v6 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-05-30 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI gpu. So don't rage quit if there is no CLK subsystem. For the GPU in LS7a1000 and LS2k2000, the working frequency of the GPU is tuned by configuring the PLL register dir

[PATCH v6 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-05-30 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI gpu. So don't rage quit if there is no CLK subsystem. For the GPU in LS7a1000 and LS2k2000, the working frequency of the GPU is tuned by configuring the PLL register dir