imx9: correct getting LPI2C clk
LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
5f2953eb6b
commit
532e73fdda
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue