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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
870件の閲覧回数
Jeff-CF-Huang
Contributor II

Hi Sir,


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

0 件の賞賛
返信
1 解決策
824件の閲覧回数
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 返答(返信)
825件の閲覧回数
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 件の賞賛
返信
838件の閲覧回数
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 件の賞賛
返信
835件の閲覧回数
Jeff-CF-Huang
Contributor II

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

0 件の賞賛
返信
854件の閲覧回数
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 件の賞賛
返信
850件の閲覧回数
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 件の賞賛
返信