drivers: i2c: stm32: exclude stm32f7 family for PM in RTIO driver
Exclude STM32F7 SoC series from PM support since that SoC doees not
yet manage power management in Zephyr and HAL API functions
LL_I2C_EnableWakeUpFromStop() and LL_I2C_DisableWakeUpFromStop()
are not implemented in the H7 HAL/LL drivers.
This change ports into the STM32 RTIO driver the change made in the
non-RTIO driver through commit 1804eb7bc3 ("drivers: i2c: stm32:
exclude stm32f7 family for PM").
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
This commit is contained in:
committed by
Johan Hedberg
parent
e29ebbe13c
commit
5ff3dbeeee
@@ -212,11 +212,13 @@ int i2c_stm32_target_register(const struct device *dev,
|
||||
/* Mark device as active */
|
||||
(void)pm_device_runtime_get(dev);
|
||||
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32F7X)
|
||||
if (pm_device_wakeup_is_capable(dev)) {
|
||||
/* Enable wake-up from stop */
|
||||
LOG_DBG("i2c: enabling wakeup from stop");
|
||||
LL_I2C_EnableWakeUpFromStop(cfg->i2c);
|
||||
}
|
||||
#endif /* !CONFIG_SOC_SERIES_STM32F7X */
|
||||
|
||||
LL_I2C_Enable(i2c);
|
||||
|
||||
@@ -297,11 +299,13 @@ int i2c_stm32_target_unregister(const struct device *dev,
|
||||
|
||||
LL_I2C_Disable(i2c);
|
||||
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32F7X)
|
||||
if (pm_device_wakeup_is_capable(dev)) {
|
||||
/* Disable wake-up from STOP */
|
||||
LOG_DBG("i2c: disabling wakeup from stop");
|
||||
LL_I2C_DisableWakeUpFromStop(i2c);
|
||||
}
|
||||
#endif /* !CONFIG_SOC_SERIES_STM32F7X */
|
||||
|
||||
/* Release the device */
|
||||
(void)pm_device_runtime_put(dev);
|
||||
|
||||
Reference in New Issue
Block a user