Skip to contentSkip to conversation

pwm: bcm2835: Allow building for ARCH_BRCMSTB

PATCH In review Florian Fainelli 3 participants 3 messages Dec 9, 2019 – Dec 30, 2019 PWM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: bcm2835: Allow building for ARCH_BRCMSTB

BCM7211 is supported using ARCH_BRCMSTB and uses this PWM controller driver, make it possible to build it.

---
 drivers/pwm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/Kconfig +1 -1
index bd21655c37a6..0bb8a40c8d6c 100644
@@ -100,7 +100,7 @@ config PWM_BCM_KONA
 
 config PWM_BCM2835
 	tristate "BCM2835 PWM support"
-	depends on ARCH_BCM2835
+	depends on ARCH_BCM2835 || ARCH_BRCMSTB
 	help
 	  PWM framework driver for BCM2835 controller (Raspberry Pi)
 
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Florian Fainelli

BCM7211 is supported using ARCH_BRCMSTB and uses this PWM controller driver, make it possible to build it.

---
 drivers/pwm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index bd21655c37a6..0bb8a40c8d6c 100644

drivers/pwm/Kconfig config PWM_BCM_KONA · line 103

Quoted 5 lines
drivers/pwm/Kconfig +1 -1
@@ -100,7 +100,7 @@ config PWM_BCM_KONA
 
 config PWM_BCM2835
 	tristate "BCM2835 PWM support"
-	depends on ARCH_BCM2835
+	depends on ARCH_BCM2835 || ARCH_BRCMSTB

It would be nice to allow this driver to be compiled with COMPILE_TEST, too. But also without this:

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
#2 lore raw
Quoted 23 lines · Uwe Kleine-König
Quoted 13 lines · Florian Fainelli

BCM7211 is supported using ARCH_BRCMSTB and uses this PWM controller driver, make it possible to build it.

---
 drivers/pwm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index bd21655c37a6..0bb8a40c8d6c 100644

drivers/pwm/Kconfig config PWM_BCM_KONA · line 103

Quoted 5 lines
drivers/pwm/Kconfig +1 -1
@@ -100,7 +100,7 @@ config PWM_BCM_KONA
 
 config PWM_BCM2835
 	tristate "BCM2835 PWM support"
-	depends on ARCH_BCM2835
+	depends on ARCH_BCM2835 || ARCH_BRCMSTB

It would be nice to allow this driver to be compiled with COMPILE_TEST, too. But also without this:

Quoted 1 line

Krysztof just submitted a patch doing that [1], which will conflict with this one. Thierry would you be able to resolve that conflict while applying?

[1]:
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Signature · 1 line
Florian