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

sbabic at denx.de sbabic at denx.de
Tue Jan 31 10:50:38 CET 2023

> 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 the I2C clock.
> This provides a workaround for the imx7d-pico board, where I2C4 is
> connected to the PMIC.
> With this change, it is possible to convert the imx7d-pico board
> to DM_I2C and DM_PMIC.
> Signed-off-by: Fabio Estevam <festevam at denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de

More information about the U-Boot mailing list