Browse Source

pwm: bcm-iproc: Update dependencies for compile-test

Add dependency on COMMON_CLK and allow COMPILE_TEST for broader compile
coverage. Default to Y for IPROC SoCs. This allows the driver to simply
be enabled by selecting PWM.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
[thierry.reding@gmail.com: reword commit message]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Scott Branden 8 years ago
parent
commit
5bf22ff32e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/pwm/Kconfig

+ 3 - 1
drivers/pwm/Kconfig

@@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
 
 
 config PWM_BCM_IPROC
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
 	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
 	help
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  block is used in Broadcom iProc SoC's.
 	  block is used in Broadcom iProc SoC's.