Hi,
We are using mx6dl processor( in Solo mode) on our custom board. I need to enable i2c4( in boot loader) and for that I need i2c clock enable bit. I found i2c clock enable bit for i2c1/2/3 but the same is not there for i2c4 in reference manual. Has anyone come across this problem? Could anyone tell me where I can find that bit (in which register)?
Thanks and regards,
Kishan
Solved! Go to Solution.
Hi, Kishan
I looked through the latest RM of mx6dl, see below, in CCM_CCGR1, can you try it, bit8-9?
9–8
CG4
i2c4 clocks (i2c4_clk_enable)
Hi Kishan,
I2C4 clock enable is connected with “ccm_ecspi5_clk_enable” in design.
Best regards.
Jorge.
Hi Jorge,
We tried using ccm_ecspi5_clk_enable bits for enabling i2c4 clock, but still we are not getting clock. We have followed the same initialization sequence that is followed for initializing other i2c buses in boot loader and board file. Anything else needs to be done?
Thanks
Hi,
First of all, thanks.
Actually, In kernel, there is a platform dependent clock interface that initializes and registers all clocks. For me it is in, arch/arm/mach-mx6/clock.c. I had to modify this to add support for for i2c4. Then everything worked fine.
Thanks
Hi, Kishan
I looked through the latest RM of mx6dl, see below, in CCM_CCGR1, can you try it, bit8-9?
9–8
CG4
i2c4 clocks (i2c4_clk_enable)