soc: stm32g4x/stm32l0x: fix soc hook calls
Missed 2 places related to power management. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
3eded9d10d
commit
f08c91a7e4
3 changed files with 6 additions and 8 deletions
|
|
@ -20,6 +20,8 @@
|
|||
#include <stm32_ll_pwr.h>
|
||||
#endif /* PWR_CR3_UCPD_DBDIS */
|
||||
|
||||
extern void stm32_power_init(void);
|
||||
|
||||
/**
|
||||
* @brief Perform basic hardware initialization at boot.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -72,11 +72,3 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
|
|||
*/
|
||||
irq_unlock(0);
|
||||
}
|
||||
|
||||
/* Initialize STM32 Power */
|
||||
void soc_early_init_hook(void)
|
||||
{
|
||||
|
||||
/* Enable Power clock */
|
||||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,8 @@ void soc_early_init_hook(void)
|
|||
* https://github.com/zephyrproject-rtos/zephyr/issues/#34324 )
|
||||
*/
|
||||
LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_DMA1);
|
||||
#ifdef CONFIG_PM
|
||||
/* Enable Power clock */
|
||||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue