cpu/stm32: avoid configuring stm32mp1 APB1 clock
APB1 bus clock is always enabled is not manageable by RCC register. So avoid enabling it. Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
This commit is contained in:
parent
7a2550da9b
commit
5e30e60fec
@ -44,7 +44,7 @@
|
|||||||
#define BIT_APB_PWREN RCC_APB1ENR1_PWREN
|
#define BIT_APB_PWREN RCC_APB1ENR1_PWREN
|
||||||
#elif defined (CPU_FAM_STM32G0)
|
#elif defined (CPU_FAM_STM32G0)
|
||||||
#define BIT_APB_PWREN RCC_APBENR1_PWREN
|
#define BIT_APB_PWREN RCC_APBENR1_PWREN
|
||||||
#else
|
#elif !defined(CPU_FAM_STM32MP1)
|
||||||
#define BIT_APB_PWREN RCC_APB1ENR_PWREN
|
#define BIT_APB_PWREN RCC_APB1ENR_PWREN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ void cpu_init(void)
|
|||||||
/* initialize the Cortex-M core */
|
/* initialize the Cortex-M core */
|
||||||
cortexm_init();
|
cortexm_init();
|
||||||
/* enable PWR module */
|
/* enable PWR module */
|
||||||
#ifndef CPU_FAM_STM32WB
|
#if !defined(CPU_FAM_STM32WB) && !defined(CPU_FAM_STM32MP1)
|
||||||
periph_clk_en(APB1, BIT_APB_PWREN);
|
periph_clk_en(APB1, BIT_APB_PWREN);
|
||||||
#endif
|
#endif
|
||||||
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
|
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user