Skip to content

Commit 0c73201

Browse files
Fabrice Gasnierthierryreding
authored andcommitted
pwm: stm32: Remove automatic output enable
Don't use AOE (automatic output enable) by default. In case of break events, PWM is automatically re-enabled on next PWM cycle otherwise. Signed-off-by: Fabrice Gasnier <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent f6003f9 commit 0c73201

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pwm/pwm-stm32.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ static int stm32_pwm_config(struct stm32_pwm *priv, int ch,
377377
else
378378
regmap_update_bits(priv->regmap, TIM_CCMR2, mask, ccmr);
379379

380-
regmap_update_bits(priv->regmap, TIM_BDTR,
381-
TIM_BDTR_MOE | TIM_BDTR_AOE,
382-
TIM_BDTR_MOE | TIM_BDTR_AOE);
380+
regmap_update_bits(priv->regmap, TIM_BDTR, TIM_BDTR_MOE, TIM_BDTR_MOE);
383381

384382
return 0;
385383
}

0 commit comments

Comments
 (0)