Skip to contentSkip to conversation

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

PATCH In review Scott Branden 3 participants 4 messages Oct 8, 2016 – Jan 18, 2017 PWM

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm

- Add depends on COMMON_CLK for PWM_BCM_IPROC
- 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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/pwm/Kconfig +3 -1
index 80a566a..3eb1b6b 100644
@@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
+	depends on COMMON_CLK
+	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
Reviewed-by on v3 1/1
#1 lore raw
Quoted 16 lines · Scott Branden

- Add depends on COMMON_CLK for PWM_BCM_IPROC
- 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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index 80a566a..3eb1b6b 100644

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 84

Quoted 10 lines
drivers/pwm/Kconfig +3 -1
@@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
+	depends on COMMON_CLK
+	default ARCH_BCM_IPROC
 	help
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  block is used in Broadcom iProc SoC's.

Looks good to me!

#2 lore raw

Hi Thierry,

Could you pick up this patch?

Quoted 33 lines · Ray Jui
Quoted 16 lines · Scott Branden

- Add depends on COMMON_CLK for PWM_BCM_IPROC
- 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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index 80a566a..3eb1b6b 100644

drivers/pwm/Kconfig config PWM_ATMEL_TCB · line 84

Quoted 10 lines
drivers/pwm/Kconfig +3 -1
@@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
     tristate "iProc PWM support"
-    depends on ARCH_BCM_IPROC
+    depends on ARCH_BCM_IPROC || COMPILE_TEST
+    depends on COMMON_CLK
+    default ARCH_BCM_IPROC
     help
       Generic PWM framework driver for Broadcom iProc PWM block. This
       block is used in Broadcom iProc SoC's.

Looks good to me!

#3 lore raw
In reply to Scott Branden
Quoted 9 lines · Scott Branden

- Add depends on COMMON_CLK for PWM_BCM_IPROC
- 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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Applied with a slightly modified commit message.

Thanks,
Thierry