Skip to content

Commit d46f845

Browse files
Tanguy Rauffleterwango
authored andcommitted
stm32mp2xx_ll_rcc: add support for I2C8 clock configuration
This commit adds support for retrieving the I2C8 device clock configuration in the HAL RCC driver. This will be used by the Zephyr clock driver to read the I2C8 clock frequency in the same way as I2C1-7. Signed-off-by: Tanguy Raufflet <[email protected]>
1 parent 1e75326 commit d46f845

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

stm32cube/stm32mp2xx/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ Patch List:
5959
"stm32mp2xx_hal_conf.h" -> "stm32mp2xx_hal.h"
6060
This change ensures that the HAL driver is properly included in the build.
6161

62+
* Add support for I2C8 clock configuration
63+
- The stm32cube/stm32mp2xx/drivers/src/stm32mp2xx_ll_rcc.c file was modified
64+
for retrieving the clock configuration of the I2C8 peripheral.
65+
6266
See release_note.html from STM32Cube

stm32cube/stm32mp2xx/drivers/src/stm32mp2xx_ll_rcc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,14 @@ uint32_t LL_RCC_GetI2CClockFreq(uint32_t I2CxSource)
779779
break;
780780
#endif /* LL_RCC_I2C3_CLKSOURCE */
781781

782+
#if defined(LL_RCC_I2C8_CLKSOURCE)
783+
case LL_RCC_I2C8_CLKSOURCE:
784+
i2c_source = LL_RCC_GetI2C8ClockSource();
785+
i2c_prediv = LL_RCC_GetI2C8_PREDIV();
786+
i2c_findiv = LL_RCC_GetI2C8_FINDIV();
787+
break;
788+
#endif /* LL_RCC_I2C8_CLKSOURCE */
789+
782790
#if defined(LL_RCC_I3C4_CLKSOURCE)
783791
case LL_RCC_I3C4_CLKSOURCE:
784792
i2c_source = LL_RCC_GetI3C4ClockSource();

0 commit comments

Comments
 (0)