stm32l4 fixing proper register name RCC_APB1ENR1_PWREN

This commit is contained in:
Sergey Nikitenko
2021-03-06 21:40:19 +03:00
committed by Petro Karashchenko
parent b73e89a674
commit 50fb3b5dc0
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -698,9 +698,9 @@ static void stm32l4_stdclockconfig(void)
#if 0
/* Ensure Power control is enabled before modifying it. */
regval = getreg32(STM32L4_RCC_APB1ENR);
regval |= RCC_APB1ENR_PWREN;
putreg32(regval, STM32L4_RCC_APB1ENR);
regval = getreg32(STM32L4_RCC_APB1ENR1);
regval |= RCC_APB1ENR1_PWREN;
putreg32(regval, STM32L4_RCC_APB1ENR1);
/* Select regulator voltage output Scale 1 mode to support system
* frequencies up to 168 MHz.
+3 -3
View File
@@ -688,9 +688,9 @@ static void stm32l4_stdclockconfig(void)
#if 0
/* Ensure Power control is enabled before modifying it. */
regval = getreg32(STM32L4_RCC_APB1ENR);
regval |= RCC_APB1ENR_PWREN;
putreg32(regval, STM32L4_RCC_APB1ENR);
regval = getreg32(STM32L4_RCC_APB1ENR1);
regval |= RCC_APB1ENR1_PWREN;
putreg32(regval, STM32L4_RCC_APB1ENR1);
/* Select regulator voltage output Scale 1 mode to support system
* frequencies up to 168 MHz.