IMX6 ULL: Clock Gate register access from other driver

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

IMX6 ULL: Clock Gate register access from other driver

869 Views
phaniteja
Contributor II

Hello,

I am writing a driver for GPT2 CAPTURE functionality, For this I need to enable clock from CCM Clock Gating Register(CCM_CCGR0: CG12 and CG13). How to do this in my driver?

Thanks,

Phani Teja Movva

Labels (1)
0 Kudos
1 Reply

618 Views
igorpadykov
NXP Employee
NXP Employee

Hi Phani

one can add such initializations in uboot

uboot/board/freescale/mx6ullevk/imximage.cfg

imximage.cfg\mx6ullevk\freescale\board - uboot-imx - i.MX U-Boot 

or linux/arch/arm/mach-imx/clk-imx6ul.c

clk-imx6ul.c\mach-imx\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos