AnsweredAssumed Answered

Clock setting for i.MX6QP in clk-imx6q.c is correct?

Question asked by Takayuki Ishii on Sep 3, 2019
Latest reply on Sep 17, 2019 by Takayuki Ishii

Hello community,

 

I'm using i.MX6QP-SABRESD with Linux BSP L4.14.98-2.0.0-ga.

In source file root/drivers/clk/imx/clk-imx6q.c of linux bsp, it have some condition branch as following.

 

} else if (clk_on_imx6q()) {          if (imx_get_soc_revision() >= IMX_CHIP_REVISION_2_0) {
                  :
                }
          
else {
                  :
                }
}            

  

         /*      * for i.MX6QP with speeding grading set to 1.2GHz,      * VPU should run at 396MHz.      */     if (clk_on_imx6q() && imx_get_soc_revision() >= IMX_CHIP_REVISION_2_0) {
       :
     }

It seems that target device are both i.MX6Q and i.MX6QP.

But i.MX6QP, clk_on_imx6q() function return 0.

So if device is i.MX6QP this condition will be false and not run this sentence.

 

Which is correct answer?

 1) It is correct and it run only i.MX6Q revision 2.0 or later.

 2) It is incorrect, need to run both i.MX6QP and i.MX6Q.

 

Best regards,

Ishii.

Outcomes