Is there any way to control (modify/enable) clock on Linux?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is there any way to control (modify/enable) clock on Linux?

跳至解决方案
875 次查看
Jeff-CF-Huang
Contributor II

Hi Sir,


Is there any way to control (modify/enable) clock on Linux?

0 项奖励
回复
1 解答
829 次查看
chenyin_h
NXP Employee
NXP Employee

 Hello, @Jeff-CF-Huang

Thanks for the feedback

From the BSP perspective, seems no such functions in Linux, sorry for your inconvenience.

 

Best Regards

Chenyin

在原帖中查看解决方案

0 项奖励
回复
5 回复数
830 次查看
chenyin_h
NXP Employee
NXP Employee

 Hello, @Jeff-CF-Huang

Thanks for the feedback

From the BSP perspective, seems no such functions in Linux, sorry for your inconvenience.

 

Best Regards

Chenyin

0 项奖励
回复
843 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @Jeff-CF-Huang

Thanks for the feedback

For what we are able to see, the clocks seem to be enabled under ATF(From BSP view). We are not seeing anything under Linux to modify/enable clocks.

 

Best Regards

Chenyin

0 项奖励
回复
840 次查看
Jeff-CF-Huang
Contributor II

We want to configure the clock dynamically in the Linux kernel, including enabling, disabling, and changing the rate.

0 项奖励
回复
859 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @Jeff-CF-Huang

Thanks for the questions。

Sorry that I am not quite catching you, would you please help to clarify the questions? Which clock you were referring to?

 

Best Regards

Chenyin

0 项奖励
回复
855 次查看
Jeff-CF-Huang
Contributor II

I can get the clk summary at /sys/kernel/debug/clk.

enable prepare protect duty hardware
clock count count count rate accuracy phase cycle enable
-------------------------------------------------------------------------------------------------------
pcf85063-clkout 0 0 0 0 0 0 50000 Y
llce_per 0 0 0 80000000 0 0 50000 Y
llce_sys 0 0 0 198309214 0 0 50000 Y

But, I can't find a file node to enable/disable the clock.
For example:
I want to enable the clk of qspi_flash1x & qspi_flash2x.

0 项奖励
回复