From 0717d4789d40a1e4f1b7a399441d4144afebb597 Mon Sep 17 00:00:00 2001 From: Adam Berlinger Date: Thu, 4 Apr 2024 13:31:49 +0200 Subject: [PATCH] drivers: timer: remove reset release for lptim The LL_APBx_GRPn_ReleaseReset clears reset bit in RCC, however this bit is reset by default. Code that set this bit was removed in previous commit 0856e9915500e2138772a5553ceabc2e6d78b7d0 Keepint the autonomous clocks for STM32U5 family. Signed-off-by: Adam Berlinger --- drivers/timer/stm32_lptim_timer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/timer/stm32_lptim_timer.c b/drivers/timer/stm32_lptim_timer.c index b18d821f2aa..5dc28a4e8ea 100644 --- a/drivers/timer/stm32_lptim_timer.c +++ b/drivers/timer/stm32_lptim_timer.c @@ -401,12 +401,8 @@ static int sys_clock_driver_init(void) return -EIO; } -#if defined(LL_APB1_GRP1_PERIPH_LPTIM1) - LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_LPTIM1); -#elif defined(LL_APB3_GRP1_PERIPH_LPTIM1) +#if defined(LL_SRDAMR_GRP1_PERIPH_LPTIM1AMEN) LL_SRDAMR_GRP1_EnableAutonomousClock(LL_SRDAMR_GRP1_PERIPH_LPTIM1AMEN); -#elif defined(LL_APB7_GRP1_PERIPH_LPTIM1) - LL_APB7_GRP1_ReleaseReset(LL_APB7_GRP1_PERIPH_LPTIM1); #endif /* Enable LPTIM clock source */