AnsweredAssumed Answered

imx6 solo: Changing clock source for PWM

Question asked by Rajendra Baniyavar on Feb 23, 2015
Latest reply on Feb 26, 2015 by CarlosCasillas



Currently PWM is using ipg_perclk as its source. I would like to change it to 32KHz source. In clock.c I found "ckil_clk" for 32KHz, but when configured it to ckil_clk as parent for PWM, I don't see PWM working properly. Below are my queries.


1. ckil_clk is the right source for PWM for 32KHz?

2. Apart from below change, any other changes required to make it work?


static struct clk pwm_clk[] = {



//       .parent = &ipg_perclk,

         .parent = &ckil_clk,

         .id = 0,

         .enable_reg = MXC_CCM_CCGR4,

         .enable_shift = MXC_CCM_CCGRx_CG8_OFFSET,

         .enable = _clk_enable,

         .disable = _clk_disable,