pwm: Enable Kona PWM to be built for the Cygnus architecture
authorClément Péron <peron.clem@gmail.com>
Fri, 23 Nov 2018 09:35:59 +0000 (10:35 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 24 Dec 2018 11:06:47 +0000 (12:06 +0100)
The Cygnus architecture uses a Kona PWM. This is already present in the
device tree but can't be built actually. Hence, allow the Kona PWM to
be built for the Cygnus architecture.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig

index 27e5dd4..a8f47df 100644 (file)
@@ -88,7 +88,9 @@ config PWM_BCM_IPROC
 
 config PWM_BCM_KONA
        tristate "Kona PWM support"
-       depends on ARCH_BCM_MOBILE
+       depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST
+       depends on HAVE_CLK && HAS_IOMEM
+       default ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS
        help
          Generic PWM framework driver for Broadcom Kona PWM block.