@@ -33,6 +33,15 @@ config PWM_SYSFS
33
33
bool
34
34
default y if SYSFS
35
35
36
+ config PWM_DEBUG
37
+ bool "PWM lowlevel drivers additional checks and debug messages"
38
+ depends on DEBUG_KERNEL
39
+ help
40
+ This option enables some additional checks to help lowlevel driver
41
+ authors to get their callbacks implemented correctly.
42
+ It is expected to introduce some runtime overhead and diagnostic
43
+ output to the kernel log, so only enable while working on a driver.
44
+
36
45
config PWM_AB8500
37
46
tristate "AB8500 PWM support"
38
47
depends on AB8500_CORE && ARCH_U8500
@@ -44,7 +53,8 @@ config PWM_AB8500
44
53
45
54
config PWM_ATMEL
46
55
tristate "Atmel PWM support"
47
- depends on ARCH_AT91 && OF
56
+ depends on OF
57
+ depends on ARCH_AT91 || COMPILE_TEST
48
58
help
49
59
Generic PWM framework driver for Atmel SoC.
50
60
@@ -100,7 +110,7 @@ config PWM_BCM_KONA
100
110
101
111
config PWM_BCM2835
102
112
tristate "BCM2835 PWM support"
103
- depends on ARCH_BCM2835 || ARCH_BRCMSTB
113
+ depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
104
114
help
105
115
PWM framework driver for BCM2835 controller (Raspberry Pi)
106
116
@@ -109,7 +119,7 @@ config PWM_BCM2835
109
119
110
120
config PWM_BERLIN
111
121
tristate "Marvell Berlin PWM support"
112
- depends on ARCH_BERLIN
122
+ depends on ARCH_BERLIN || COMPILE_TEST
113
123
help
114
124
PWM framework driver for Marvell Berlin SoCs.
115
125
@@ -118,7 +128,7 @@ config PWM_BERLIN
118
128
119
129
config PWM_BRCMSTB
120
130
tristate "Broadcom STB PWM support"
121
- depends on ARCH_BRCMSTB || BMIPS_GENERIC
131
+ depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
122
132
help
123
133
Generic PWM framework driver for the Broadcom Set-top-Box
124
134
SoCs (BCM7xxx).
@@ -152,7 +162,7 @@ config PWM_CROS_EC
152
162
153
163
config PWM_EP93XX
154
164
tristate "Cirrus Logic EP93xx PWM support"
155
- depends on ARCH_EP93XX
165
+ depends on ARCH_EP93XX || COMPILE_TEST
156
166
help
157
167
Generic PWM framework driver for Cirrus Logic EP93xx.
158
168
@@ -195,7 +205,7 @@ config PWM_IMG
195
205
196
206
config PWM_IMX1
197
207
tristate "i.MX1 PWM support"
198
- depends on ARCH_MXC
208
+ depends on ARCH_MXC || COMPILE_TEST
199
209
help
200
210
Generic PWM framework driver for i.MX1 and i.MX21
201
211
@@ -204,7 +214,7 @@ config PWM_IMX1
204
214
205
215
config PWM_IMX27
206
216
tristate "i.MX27 PWM support"
207
- depends on ARCH_MXC
217
+ depends on ARCH_MXC || COMPILE_TEST
208
218
help
209
219
Generic PWM framework driver for i.MX27 and later i.MX SoCs.
210
220
@@ -225,6 +235,8 @@ config PWM_IMX_TPM
225
235
config PWM_JZ4740
226
236
tristate "Ingenic JZ47xx PWM support"
227
237
depends on MACH_INGENIC
238
+ depends on COMMON_CLK
239
+ select MFD_SYSCON
228
240
help
229
241
Generic PWM framework driver for Ingenic JZ47xx based
230
242
machines.
@@ -244,7 +256,7 @@ config PWM_LP3943
244
256
245
257
config PWM_LPC18XX_SCT
246
258
tristate "LPC18xx/43xx PWM/SCT support"
247
- depends on ARCH_LPC18XX
259
+ depends on ARCH_LPC18XX || COMPILE_TEST
248
260
help
249
261
Generic PWM framework driver for NXP LPC18xx PWM/SCT which
250
262
supports 16 channels.
@@ -256,7 +268,7 @@ config PWM_LPC18XX_SCT
256
268
257
269
config PWM_LPC32XX
258
270
tristate "LPC32XX PWM support"
259
- depends on ARCH_LPC32XX
271
+ depends on ARCH_LPC32XX || COMPILE_TEST
260
272
help
261
273
Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
262
274
PWM controllers.
@@ -289,7 +301,8 @@ config PWM_LPSS_PLATFORM
289
301
290
302
config PWM_MESON
291
303
tristate "Amlogic Meson PWM driver"
292
- depends on ARCH_MESON
304
+ depends on ARCH_MESON || COMPILE_TEST
305
+ depends on COMMON_CLK
293
306
help
294
307
The platform driver for Amlogic Meson PWM controller.
295
308
@@ -318,7 +331,8 @@ config PWM_MEDIATEK
318
331
319
332
config PWM_MXS
320
333
tristate "Freescale MXS PWM support"
321
- depends on ARCH_MXS && OF
334
+ depends on OF
335
+ depends on ARCH_MXS || COMPILE_TEST
322
336
select STMP_DEVICE
323
337
help
324
338
Generic PWM framework driver for Freescale MXS.
@@ -357,7 +371,7 @@ config PWM_PUV3
357
371
358
372
config PWM_PXA
359
373
tristate "PXA PWM support"
360
- depends on ARCH_PXA
374
+ depends on ARCH_PXA || COMPILE_TEST
361
375
help
362
376
Generic PWM framework driver for PXA.
363
377
@@ -388,14 +402,14 @@ config PWM_RENESAS_TPU
388
402
389
403
config PWM_ROCKCHIP
390
404
tristate "Rockchip PWM support"
391
- depends on ARCH_ROCKCHIP
405
+ depends on ARCH_ROCKCHIP || COMPILE_TEST
392
406
help
393
407
Generic PWM framework driver for the PWM controller found on
394
408
Rockchip SoCs.
395
409
396
410
config PWM_SAMSUNG
397
411
tristate "Samsung PWM support"
398
- depends on PLAT_SAMSUNG || ARCH_EXYNOS
412
+ depends on PLAT_SAMSUNG || ARCH_EXYNOS || COMPILE_TEST
399
413
help
400
414
Generic PWM framework driver for Samsung.
401
415
@@ -415,7 +429,7 @@ config PWM_SIFIVE
415
429
416
430
config PWM_SPEAR
417
431
tristate "STMicroelectronics SPEAr PWM support"
418
- depends on PLAT_SPEAR
432
+ depends on PLAT_SPEAR || COMPILE_TEST
419
433
depends on OF
420
434
help
421
435
Generic PWM framework driver for the PWM controller on ST
@@ -437,7 +451,7 @@ config PWM_SPRD
437
451
438
452
config PWM_STI
439
453
tristate "STiH4xx PWM support"
440
- depends on ARCH_STI
454
+ depends on ARCH_STI || COMPILE_TEST
441
455
depends on OF
442
456
help
443
457
Generic PWM framework driver for STiH4xx SoCs.
@@ -447,7 +461,7 @@ config PWM_STI
447
461
448
462
config PWM_STM32
449
463
tristate "STMicroelectronics STM32 PWM"
450
- depends on MFD_STM32_TIMERS
464
+ depends on MFD_STM32_TIMERS || COMPILE_TEST
451
465
help
452
466
Generic PWM framework driver for STM32 SoCs.
453
467
@@ -483,7 +497,7 @@ config PWM_SUN4I
483
497
484
498
config PWM_TEGRA
485
499
tristate "NVIDIA Tegra PWM support"
486
- depends on ARCH_TEGRA
500
+ depends on ARCH_TEGRA || COMPILE_TEST
487
501
help
488
502
Generic PWM framework driver for the PWFM controller found on NVIDIA
489
503
Tegra SoCs.
@@ -493,7 +507,7 @@ config PWM_TEGRA
493
507
494
508
config PWM_TIECAP
495
509
tristate "ECAP PWM support"
496
- depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3
510
+ depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
497
511
help
498
512
PWM driver support for the ECAP APWM controller found on TI SOCs
499
513
@@ -502,7 +516,7 @@ config PWM_TIECAP
502
516
503
517
config PWM_TIEHRPWM
504
518
tristate "EHRPWM PWM support"
505
- depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
519
+ depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
506
520
help
507
521
PWM driver support for the EHRPWM controller found on TI SOCs
508
522
@@ -529,7 +543,7 @@ config PWM_TWL_LED
529
543
530
544
config PWM_VT8500
531
545
tristate "vt8500 PWM support"
532
- depends on ARCH_VT8500
546
+ depends on ARCH_VT8500 || COMPILE_TEST
533
547
help
534
548
Generic PWM framework driver for vt8500.
535
549
@@ -538,7 +552,7 @@ config PWM_VT8500
538
552
539
553
config PWM_ZX
540
554
tristate "ZTE ZX PWM support"
541
- depends on ARCH_ZX
555
+ depends on ARCH_ZX || COMPILE_TEST
542
556
help
543
557
Generic PWM framework driver for ZTE ZX family SoCs.
544
558
0 commit comments