Skip to contentSkip to conversation

clk: stm32mp1: add support of I2C6_K

PATCH New Patrick Delaunay 2 participants 3 messages Jan 22, 2021 – Feb 9, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: stm32mp1: add support of I2C6_K

Add support of missing I2C6_K with bit 3 of RCC_MC_APB5ENSETR =
I2C6EN: I2C6 peripheral clocks enable.

This patch allows customer to use I2C6 in SPL or in U-Boot as other I2C instance, already support in clk driver.

---

 drivers/clk/clk_stm32mp1.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk_stm32mp1.c +1 -0
index d4f1048591..8a5bdcb11d 100644
@@ -549,6 +549,7 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 16, USBPHY_K, _USBPHY_SEL),
 
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 2, I2C4_K, _I2C46_SEL),
+	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 3, I2C6_K, _I2C46_SEL),
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 8, RTCAPB, _PCLK5),
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 20, STGEN_K, _STGEN_SEL),
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 clk: stm32mp1: add support of I2C6_K

Hi Patrick

Quoted 18 lines · Patrick Delaunay

Add support of missing I2C6_K with bit 3 of RCC_MC_APB5ENSETR =
I2C6EN: I2C6 peripheral clocks enable.

This patch allows customer to use I2C6 in SPL or in U-Boot as other I2C instance, already support in clk driver.

---

 drivers/clk/clk_stm32mp1.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk_stm32mp1.c +0 -0
index d4f1048591..8a5bdcb11d 100644

drivers/clk/clk_stm32mp1.c static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = { · line 555

Quoted 7 lines
drivers/clk/clk_stm32mp1.c +1 -0
@@ -549,6 +549,7 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 16, USBPHY_K, _USBPHY_SEL),
 
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 2, I2C4_K, _I2C46_SEL),
+	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 3, I2C6_K, _I2C46_SEL),
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 8, RTCAPB, _PCLK5),
 	STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 20, STGEN_K, _STGEN_SEL),
 

Thanks
Patrice

#2 lore raw

PATCH 1/1 clk: stm32mp1: add support of I2C6_K

In reply to Patrick Delaunay

Hi,

Quoted 12 lines · Patrick Delaunay

Add support of missing I2C6_K with bit 3 of RCC_MC_APB5ENSETR =
I2C6EN: I2C6 peripheral clocks enable.

This patch allows customer to use I2C6 in SPL or in U-Boot as other I2C instance, already support in clk driver.

---

  drivers/clk/clk_stm32mp1.c | 1 +
  1 file changed, 1 insertion(+)

Applied to u-boot-stm/master, thanks!

Regards

Patrick