Skip to content

Commit 3bab3ef

Browse files
committed
drivers: pwm: changed stm32 pwm base to mfd timer
Allow usage of MFD stm32 timer as base timer for the pwm device. Signed-off-by: Max van Kessel <[email protected]>
1 parent 8857934 commit 3bab3ef

File tree

8 files changed

+203
-440
lines changed

8 files changed

+203
-440
lines changed

drivers/pwm/Kconfig.stm32

Lines changed: 3 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -3,135 +3,11 @@
33
# Copyright (c) 2016 Linaro Limited.
44
# SPDX-License-Identifier: Apache-2.0
55

6-
menuconfig PWM_STM32
6+
config PWM_STM32
77
bool "STM32 MCU PWM driver"
88
depends on SOC_FAMILY_STM32
9-
select USE_STM32_HAL_TIM
9+
select MFD_TIMER_STM32
1010
help
1111
This option enables the PWM driver for STM32 family of
1212
processors. Say y if you wish to use PWM port on STM32
13-
MCU.
14-
15-
if PWM_STM32
16-
17-
config PWM_STM32_1
18-
bool "STM32 PWM 1 Output"
19-
help
20-
Enable output for PWM1 in the driver. Say y here
21-
if you want to use PWM1 output.
22-
23-
config PWM_STM32_2
24-
bool "STM32 PWM 2 Output"
25-
help
26-
Enable output for PWM2 in the driver. Say y here
27-
if you want to use PWM2 output.
28-
29-
config PWM_STM32_3
30-
bool "STM32 PWM 3 Output"
31-
help
32-
Enable output for PWM3 in the driver. Say y here
33-
if you want to use PWM3 output.
34-
35-
config PWM_STM32_4
36-
bool "STM32 PWM 4 Output"
37-
help
38-
Enable output for PWM4 in the driver. Say y here
39-
if you want to use PWM4 output.
40-
41-
config PWM_STM32_5
42-
bool "STM32 PWM 5 Output"
43-
help
44-
Enable output for PWM5 in the driver. Say y here
45-
if you want to use PWM5 output.
46-
47-
config PWM_STM32_6
48-
bool "STM32 PWM 6 Output"
49-
help
50-
Enable output for PWM6 in the driver. Say y here
51-
if you want to use PWM6 output.
52-
53-
config PWM_STM32_7
54-
bool "STM32 PWM 7 Output"
55-
help
56-
Enable output for PWM7 in the driver. Say y here
57-
if you want to use PWM7 output.
58-
59-
config PWM_STM32_8
60-
bool "STM32 PWM 8 Output"
61-
help
62-
Enable output for PWM8 in the driver. Say y here
63-
if you want to use PWM8 output.
64-
65-
config PWM_STM32_9
66-
bool "STM32 PWM 9 Output"
67-
help
68-
Enable output for PWM9 in the driver. Say y here
69-
if you want to use PWM9 output.
70-
71-
config PWM_STM32_10
72-
bool "STM32 PWM 10 Output"
73-
help
74-
Enable output for PWM10 in the driver. Say y here
75-
if you want to use PWM10 output.
76-
77-
config PWM_STM32_11
78-
bool "STM32 PWM 11 Output"
79-
help
80-
Enable output for PWM11 in the driver. Say y here
81-
if you want to use PWM11 output.
82-
83-
config PWM_STM32_12
84-
bool "STM32 PWM 12 Output"
85-
help
86-
Enable output for PWM12 in the driver. Say y here
87-
if you want to use PWM12 output.
88-
89-
config PWM_STM32_13
90-
bool "STM32 PWM 13 Output"
91-
help
92-
Enable output for PWM13 in the driver. Say y here
93-
if you want to use PWM13 output.
94-
95-
config PWM_STM32_14
96-
bool "STM32 PWM 14 Output"
97-
help
98-
Enable output for PWM14 in the driver. Say y here
99-
if you want to use PWM14 output.
100-
101-
config PWM_STM32_15
102-
bool "STM32 PWM 15 Output"
103-
help
104-
Enable output for PWM15 in the driver. Say y here
105-
if you want to use PWM15 output.
106-
107-
config PWM_STM32_16
108-
bool "STM32 PWM 16 Output"
109-
help
110-
Enable output for PWM16 in the driver. Say y here
111-
if you want to use PWM16 output.
112-
113-
config PWM_STM32_17
114-
bool "STM32 PWM 17 Output"
115-
help
116-
Enable output for PWM17 in the driver. Say y here
117-
if you want to use PWM17 output.
118-
119-
config PWM_STM32_18
120-
bool "STM32 PWM 18 Output"
121-
help
122-
Enable output for PWM18 in the driver. Say y here
123-
if you want to use PWM18 output.
124-
125-
config PWM_STM32_19
126-
bool "STM32 PWM 19 Output"
127-
help
128-
Enable output for PWM19 in the driver. Say y here
129-
if you want to use PWM19 output.
130-
131-
config PWM_STM32_20
132-
bool "STM32 PWM 20 Output"
133-
help
134-
Enable output for PWM20 in the driver. Say y here
135-
if you want to use PWM20 output.
136-
137-
endif # PWM_STM32
13+
MCU.

0 commit comments

Comments
 (0)