hi,
I want to give configurable cpu clock through a gpio.Someone pls explain me the steps involved in setting the frequency and giving out through gpio in imx6 dual lite cpu in linux environment.I have the yocto source code downloaded for the iwave custom board using imx6 dl cpu.
Do you mean the CCM_CLKO1 and CCM_CLKO2 clock output signals? If so, you first have to select the desired pad for the signal by appropriately configuring the IOMUX module, refer to the Sections 3.5 and 3.6 of attached Linux Reference Manual document. Then, unfortunately, there are no regular tools to control the CCM_CLKx source to output in the user space. The only way to control it is to directly access the CCM_CCOSR register by a physical address through /dev/mem.
Also, please refer to attached Linux BSP Porting Guide document for various aspects of customizing the Linux BSP.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks..how to configure ccm _clk01 from linux user space?