From: Peng Fan Date: Fri, 28 Apr 2023 04:08:18 +0000 (+0800) Subject: imx9: correct getting LPI2C clk X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=532e73fddab1781bafd0cb501893bc4fccb54094;p=u-boot.git imx9: correct getting LPI2C clk LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c Signed-off-by: Peng Fan --- diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index f6021502b3..a0efee96e5 100644 --- a/arch/arm/mach-imx/imx9/clock.c +++ b/arch/arm/mach-imx/imx9/clock.c @@ -574,7 +574,7 @@ u32 imx_get_i2cclk(u32 i2c_num) if (i2c_num > 7) return -EINVAL; - return ccm_clk_root_get_rate(LPUART1_CLK_ROOT + i2c_num); + return ccm_clk_root_get_rate(LPI2C1_CLK_ROOT + i2c_num); } u32 get_lpuart_clk(void)