I'm testing the I2C driver in the Secure World on i.MX6Q using the i.MX6 platform SDK. However, I2C_I2CR MSTA bit cannot be set. According to the i.MX6 reference manual, "The module clock should be on for writing to the MSTA bit."
I looked into the module clock which is "ipg_clk_patref", and checked the value of CCGR2. It looks fine, but the I2C driver is not working.
Did I miss something? What part should I check?