Skip to contentSkip to conversation

pwm: add COMPILE_TEST and default y for brcm-iproc-pwm

PATCH Superseded Scott Branden 2 participants 3 messages Oct 8, 2016 PWM

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pwm: add COMPILE_TEST and default y for brcm-iproc-pwm

Enable COMPILE_TEST for broader compile coverage. Default y for IPROC PWM driver for IPROC SoCs.
This allows you to turn it on simply by selecting CONFIG_PWM.

---
 drivers/pwm/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pwm/Kconfig +2 -1
index 80a566a..68cd13d 100644
@@ -76,7 +76,8 @@ config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
+	default ARCH_BCM_IPROC
 	help
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  block is used in Broadcom iProc SoC's.
Signature · 1 line
2.5.0
#1 lore raw

Hi Scott,

Quoted 14 lines · Scott Branden

Enable COMPILE_TEST for broader compile coverage. Default y for IPROC PWM driver for IPROC SoCs.
This allows you to turn it on simply by selecting CONFIG_PWM.

---
  drivers/pwm/Kconfig | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index 80a566a..68cd13d 100644

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 79

Quoted 5 lines
drivers/pwm/Kconfig +1 -1
@@ -76,7 +76,8 @@ config PWM_ATMEL_TCB
 
  config PWM_BCM_IPROC
  	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST

Would be nice to also add a dependency on COMMON_CLK here.

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 83

Quoted 4 lines
drivers/pwm/Kconfig +1 -0
+	default ARCH_BCM_IPROC
  	help
  	  Generic PWM framework driver for Broadcom iProc PWM block. This
  	  block is used in Broadcom iProc SoC's.

Thanks,

Ray

#2 lore raw

Hi Ray,

Quoted 12 lines · Ray Jui

Hi Scott,

Quoted 9 lines · Scott Branden

Enable COMPILE_TEST for broader compile coverage. Default y for IPROC PWM driver for IPROC SoCs.
This allows you to turn it on simply by selecting CONFIG_PWM.

---
  drivers/pwm/Kconfig | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 10 lines

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 78

Quoted 9 lines
drivers/pwm/Kconfig +1 -1
index 80a566a..68cd13d 100644
@@ -76,7 +76,8 @@ config PWM_ATMEL_TCB
    config PWM_BCM_IPROC
      tristate "iProc PWM support"
-    depends on ARCH_BCM_IPROC
+    depends on ARCH_BCM_IPROC || COMPILE_TEST

Would be nice to also add a dependency on COMMON_CLK here.

will add depends on COMMON_CLK

Quoted 9 lines

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 83

Quoted 5 lines
drivers/pwm/Kconfig +1 -0
+    default ARCH_BCM_IPROC
      help
        Generic PWM framework driver for Broadcom iProc PWM block. This
        block is used in Broadcom iProc SoC's.

Thanks,

Ray

Regards,
Scott