]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx6q: Add definition for IMX6QDL_CLK_I2C3
authorEmil Kronborg <emil.kronborg@protonmail.com>
Fri, 12 Jul 2024 14:19:10 +0000 (14:19 +0000)
committerFabio Estevam <festevam@gmail.com>
Mon, 22 Jul 2024 20:55:35 +0000 (17:55 -0300)
Commit 727fa4539ca2 ("clk: Add support for I2C clocks on NXP's imx6q SoC
which use CCF") added I2C clocks for I2C1 and I2C2, but not I2C3.
Consequently, devices using I2C3 fail after enabling CONFIG_CLK_IMX6Q
and thus CONFIG_CLK. Therefore, this commit adds the last I2C clock.

Signed-off-by: Emil Kronborg <emil.kronborg@protonmail.com>
drivers/clk/imx/clk-imx6q.c

index ba9923d8f6fab4322bb89a9d2fd678a1a22a8bfd..5994155735c754cd1c71622e33d2aa930cc63a04 100644 (file)
@@ -128,6 +128,8 @@ static int imx6q_clk_probe(struct udevice *dev)
               imx_clk_gate2("i2c1", "ipg_per", base + 0x70, 6));
        clk_dm(IMX6QDL_CLK_I2C2,
               imx_clk_gate2("i2c2", "ipg_per", base + 0x70, 8));
+       clk_dm(IMX6QDL_CLK_I2C3,
+              imx_clk_gate2("i2c3", "ipg_per", base + 0x70, 10));
 
        clk_dm(IMX6QDL_CLK_ENET, imx_clk_gate2("enet", "ipg", base + 0x6c, 10));
        clk_dm(IMX6QDL_CLK_ENET_REF,