[PATCH 2/3] mx7: clock: Use 60MHz for the I2C clocks

2023-01-31 Thread sbabic
> When an I2C clock is enabled inside enable_i2c_clk() the clock rate is > configured as PLL_SYS_MAIN_120M_CLK / 2 = 60MHz. > Currently, the I2C clock is retrieved from I2C1_CLK_ROOT, which > may not be the one that was enabled. > As there is no clock driver for the imx7d, it is better to return

[PATCH 2/3] mx7: clock: Use 60MHz for the I2C clocks

2023-01-03 Thread Fabio Estevam
When an I2C clock is enabled inside enable_i2c_clk() the clock rate is configured as PLL_SYS_MAIN_120M_CLK / 2 = 60MHz. Currently, the I2C clock is retrieved from I2C1_CLK_ROOT, which may not be the one that was enabled. As there is no clock driver for the imx7d, it is better to return 60MHz for