2019-12-09 23:25:52

by Florian Fainelli

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Florian Fainelli <[email protected]>
---
drivers/pwm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index bd21655c37a6..0bb8a40c8d6c 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -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)

--
2.17.1


2019-12-10 06:53:45

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH] pwm: bcm2835: Allow building for ARCH_BRCMSTB

On Mon, Dec 09, 2019 at 03:25:03PM -0800, Florian Fainelli wrote:
> BCM7211 is supported using ARCH_BRCMSTB and uses this PWM controller
> driver, make it possible to build it.
>
> Signed-off-by: Florian Fainelli <[email protected]>
> ---
> drivers/pwm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index bd21655c37a6..0bb8a40c8d6c 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -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:

Acked-by: Uwe Kleine-K?nig <[email protected]>

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | https://www.pengutronix.de/ |

2019-12-30 19:34:21

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH] pwm: bcm2835: Allow building for ARCH_BRCMSTB

On 12/9/19 10:52 PM, Uwe Kleine-König wrote:
> On Mon, Dec 09, 2019 at 03:25:03PM -0800, Florian Fainelli wrote:
>> BCM7211 is supported using ARCH_BRCMSTB and uses this PWM controller
>> driver, make it possible to build it.
>>
>> Signed-off-by: Florian Fainelli <[email protected]>
>> ---
>> drivers/pwm/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
>> index bd21655c37a6..0bb8a40c8d6c 100644
>> --- a/drivers/pwm/Kconfig
>> +++ b/drivers/pwm/Kconfig
>> @@ -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:
>
> Acked-by: Uwe Kleine-König <[email protected]>

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]/
--
Florian