]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: correct getting LPI2C clk
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Apr 2023 04:08:18 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:40 +0000 (16:54 +0200)
LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/clock.c

index f6021502b3d87bd7de21d7ba100b62fc4ab333fa..a0efee96e51c3ed137739ffb2525335ec86d50c9 100644 (file)
@@ -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)