STM32L4 COMP: comparators share RCC enable bit with SYSCFG
This commit is contained in:
parent
1152e4868b
commit
1be5f0a3fc
@ -435,8 +435,10 @@ static inline void rcc_enableapb2(void)
|
||||
|
||||
regval = getreg32(STM32L4_RCC_APB2ENR);
|
||||
|
||||
#ifdef CONFIG_STM32L4_SYSCFG
|
||||
/* System configuration controller clock enable */
|
||||
#if defined(CONFIG_STM32L4_SYSCFG) || defined(CONFIG_STM32L4_COMP)
|
||||
/* System configuration controller, comparators, and voltage reference buffer
|
||||
* clock enable
|
||||
*/
|
||||
|
||||
regval |= RCC_APB2ENR_SYSCFGEN;
|
||||
#endif
|
||||
|
@ -446,8 +446,10 @@ static inline void rcc_enableapb2(void)
|
||||
|
||||
regval = getreg32(STM32L4_RCC_APB2ENR);
|
||||
|
||||
#ifdef CONFIG_STM32L4_SYSCFG
|
||||
/* System configuration controller clock enable */
|
||||
#if defined(CONFIG_STM32L4_SYSCFG) || defined(CONFIG_STM32L4_COMP)
|
||||
/* System configuration controller, comparators, and voltage reference buffer
|
||||
* clock enable
|
||||
*/
|
||||
|
||||
regval |= RCC_APB2ENR_SYSCFGEN;
|
||||
#endif
|
||||
|
@ -491,8 +491,10 @@ static inline void rcc_enableapb2(void)
|
||||
|
||||
regval = getreg32(STM32L4_RCC_APB2ENR);
|
||||
|
||||
#ifdef CONFIG_STM32L4_SYSCFG
|
||||
/* System configuration controller clock enable */
|
||||
#if defined(CONFIG_STM32L4_SYSCFG) || defined(CONFIG_STM32L4_COMP)
|
||||
/* System configuration controller, comparators, and voltage reference buffer
|
||||
* clock enable
|
||||
*/
|
||||
|
||||
regval |= RCC_APB2ENR_SYSCFGEN;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user