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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
757 Views
Jeff-CF-Huang
Contributor II

Hi Sir,


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

0 Kudos
Reply
1 Solution
711 Views
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

View solution in original post

0 Kudos
Reply
5 Replies
712 Views
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 Kudos
Reply
725 Views
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 Kudos
Reply
722 Views
Jeff-CF-Huang
Contributor II

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

0 Kudos
Reply
741 Views
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 Kudos
Reply
737 Views
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 Kudos
Reply