Skip to content

Commit e96c0ff

Browse files
krzkthierryreding
authored andcommitted
pwm: Enable compile testing for some of drivers
Some of the PWM drivers can be compile tested to increase build coverage. The Meson PWM driver requires COMMON_CLK dependency. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Florian Fainelli <[email protected]> # For Broadcoam Reviewed-by: Martin Blumenstingl <[email protected]> # For Meson Acked-by: Claudiu Beznea <[email protected]> # For Atmel Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 69ee15f commit e96c0ff

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

drivers/pwm/Kconfig

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ config PWM_AB8500
5353

5454
config PWM_ATMEL
5555
tristate "Atmel PWM support"
56-
depends on ARCH_AT91 && OF
56+
depends on OF
57+
depends on ARCH_AT91 || COMPILE_TEST
5758
help
5859
Generic PWM framework driver for Atmel SoC.
5960

@@ -109,7 +110,7 @@ config PWM_BCM_KONA
109110

110111
config PWM_BCM2835
111112
tristate "BCM2835 PWM support"
112-
depends on ARCH_BCM2835 || ARCH_BRCMSTB
113+
depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
113114
help
114115
PWM framework driver for BCM2835 controller (Raspberry Pi)
115116

@@ -118,7 +119,7 @@ config PWM_BCM2835
118119

119120
config PWM_BERLIN
120121
tristate "Marvell Berlin PWM support"
121-
depends on ARCH_BERLIN
122+
depends on ARCH_BERLIN || COMPILE_TEST
122123
help
123124
PWM framework driver for Marvell Berlin SoCs.
124125

@@ -127,7 +128,7 @@ config PWM_BERLIN
127128

128129
config PWM_BRCMSTB
129130
tristate "Broadcom STB PWM support"
130-
depends on ARCH_BRCMSTB || BMIPS_GENERIC
131+
depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
131132
help
132133
Generic PWM framework driver for the Broadcom Set-top-Box
133134
SoCs (BCM7xxx).
@@ -161,7 +162,7 @@ config PWM_CROS_EC
161162

162163
config PWM_EP93XX
163164
tristate "Cirrus Logic EP93xx PWM support"
164-
depends on ARCH_EP93XX
165+
depends on ARCH_EP93XX || COMPILE_TEST
165166
help
166167
Generic PWM framework driver for Cirrus Logic EP93xx.
167168

@@ -204,7 +205,7 @@ config PWM_IMG
204205

205206
config PWM_IMX1
206207
tristate "i.MX1 PWM support"
207-
depends on ARCH_MXC
208+
depends on ARCH_MXC || COMPILE_TEST
208209
help
209210
Generic PWM framework driver for i.MX1 and i.MX21
210211

@@ -213,7 +214,7 @@ config PWM_IMX1
213214

214215
config PWM_IMX27
215216
tristate "i.MX27 PWM support"
216-
depends on ARCH_MXC
217+
depends on ARCH_MXC || COMPILE_TEST
217218
help
218219
Generic PWM framework driver for i.MX27 and later i.MX SoCs.
219220

@@ -253,7 +254,7 @@ config PWM_LP3943
253254

254255
config PWM_LPC18XX_SCT
255256
tristate "LPC18xx/43xx PWM/SCT support"
256-
depends on ARCH_LPC18XX
257+
depends on ARCH_LPC18XX || COMPILE_TEST
257258
help
258259
Generic PWM framework driver for NXP LPC18xx PWM/SCT which
259260
supports 16 channels.
@@ -265,7 +266,7 @@ config PWM_LPC18XX_SCT
265266

266267
config PWM_LPC32XX
267268
tristate "LPC32XX PWM support"
268-
depends on ARCH_LPC32XX
269+
depends on ARCH_LPC32XX || COMPILE_TEST
269270
help
270271
Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
271272
PWM controllers.
@@ -298,7 +299,8 @@ config PWM_LPSS_PLATFORM
298299

299300
config PWM_MESON
300301
tristate "Amlogic Meson PWM driver"
301-
depends on ARCH_MESON
302+
depends on ARCH_MESON || COMPILE_TEST
303+
depends on COMMON_CLK
302304
help
303305
The platform driver for Amlogic Meson PWM controller.
304306

@@ -327,7 +329,8 @@ config PWM_MEDIATEK
327329

328330
config PWM_MXS
329331
tristate "Freescale MXS PWM support"
330-
depends on ARCH_MXS && OF
332+
depends on OF
333+
depends on ARCH_MXS || COMPILE_TEST
331334
select STMP_DEVICE
332335
help
333336
Generic PWM framework driver for Freescale MXS.
@@ -366,7 +369,7 @@ config PWM_PUV3
366369

367370
config PWM_PXA
368371
tristate "PXA PWM support"
369-
depends on ARCH_PXA
372+
depends on ARCH_PXA || COMPILE_TEST
370373
help
371374
Generic PWM framework driver for PXA.
372375

@@ -397,14 +400,14 @@ config PWM_RENESAS_TPU
397400

398401
config PWM_ROCKCHIP
399402
tristate "Rockchip PWM support"
400-
depends on ARCH_ROCKCHIP
403+
depends on ARCH_ROCKCHIP || COMPILE_TEST
401404
help
402405
Generic PWM framework driver for the PWM controller found on
403406
Rockchip SoCs.
404407

405408
config PWM_SAMSUNG
406409
tristate "Samsung PWM support"
407-
depends on PLAT_SAMSUNG || ARCH_EXYNOS
410+
depends on PLAT_SAMSUNG || ARCH_EXYNOS || COMPILE_TEST
408411
help
409412
Generic PWM framework driver for Samsung.
410413

@@ -424,7 +427,7 @@ config PWM_SIFIVE
424427

425428
config PWM_SPEAR
426429
tristate "STMicroelectronics SPEAr PWM support"
427-
depends on PLAT_SPEAR
430+
depends on PLAT_SPEAR || COMPILE_TEST
428431
depends on OF
429432
help
430433
Generic PWM framework driver for the PWM controller on ST
@@ -446,7 +449,7 @@ config PWM_SPRD
446449

447450
config PWM_STI
448451
tristate "STiH4xx PWM support"
449-
depends on ARCH_STI
452+
depends on ARCH_STI || COMPILE_TEST
450453
depends on OF
451454
help
452455
Generic PWM framework driver for STiH4xx SoCs.
@@ -456,7 +459,7 @@ config PWM_STI
456459

457460
config PWM_STM32
458461
tristate "STMicroelectronics STM32 PWM"
459-
depends on MFD_STM32_TIMERS
462+
depends on MFD_STM32_TIMERS || COMPILE_TEST
460463
help
461464
Generic PWM framework driver for STM32 SoCs.
462465

@@ -492,7 +495,7 @@ config PWM_SUN4I
492495

493496
config PWM_TEGRA
494497
tristate "NVIDIA Tegra PWM support"
495-
depends on ARCH_TEGRA
498+
depends on ARCH_TEGRA || COMPILE_TEST
496499
help
497500
Generic PWM framework driver for the PWFM controller found on NVIDIA
498501
Tegra SoCs.
@@ -502,7 +505,7 @@ config PWM_TEGRA
502505

503506
config PWM_TIECAP
504507
tristate "ECAP PWM support"
505-
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3
508+
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
506509
help
507510
PWM driver support for the ECAP APWM controller found on TI SOCs
508511

@@ -511,7 +514,7 @@ config PWM_TIECAP
511514

512515
config PWM_TIEHRPWM
513516
tristate "EHRPWM PWM support"
514-
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
517+
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
515518
help
516519
PWM driver support for the EHRPWM controller found on TI SOCs
517520

@@ -538,7 +541,7 @@ config PWM_TWL_LED
538541

539542
config PWM_VT8500
540543
tristate "vt8500 PWM support"
541-
depends on ARCH_VT8500
544+
depends on ARCH_VT8500 || COMPILE_TEST
542545
help
543546
Generic PWM framework driver for vt8500.
544547

@@ -547,7 +550,7 @@ config PWM_VT8500
547550

548551
config PWM_ZX
549552
tristate "ZTE ZX PWM support"
550-
depends on ARCH_ZX
553+
depends on ARCH_ZX || COMPILE_TEST
551554
help
552555
Generic PWM framework driver for ZTE ZX family SoCs.
553556

0 commit comments

Comments
 (0)