[resend rfc] pwm: add BCM2835 PWM driver

2014-04-25 Thread Bart Tanghe
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 22f2f28..2c93109 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -62,6 +62,17 @@ config PWM_ATMEL_TCB To compile this driver as a module, choose M here: the module will be called pwm-atmel-tcb. +config

Re: [rfc]pwm: add BCM2835 PWM driver

2014-04-14 Thread Stephen Warren
On 04/14/2014 04:31 AM, Bart Tanghe wrote: > Is it the responsibility of the pwm driver to handle the pinmux of the > io pins? Or is the end user, or a parent driver responsible to handle this? > Idem for the clock? The pinmux driver is responsible for writing to the pinmux registers. This can be

Re: [rfc]pwm: add BCM2835 PWM driver

2014-04-14 Thread Bart Tanghe
Is it the responsibility of the pwm driver to handle the pinmux of the io pins? Or is the end user, or a parent driver responsible to handle this? Idem for the clock? On 04/09/2014 05:59 PM, Tim Kryger wrote: On Tue, Apr 8, 2014 at 6:27 PM, Stephen Warren wrote: On 04/08/2014 05:02 PM, Tim K

Re: [rfc]pwm: add BCM2835 PWM driver

2014-04-09 Thread Tim Kryger
On Tue, Apr 8, 2014 at 6:27 PM, Stephen Warren wrote: > On 04/08/2014 05:02 PM, Tim Kryger wrote: >> On Thu, Apr 3, 2014 at 6:44 AM, Bart Tanghe >> wrote: >>> need some recommendation >>> the memory mapped io registers of the bcm2835 pwm hardware are spreaded >>> over the memory mapped io >>> gp

Re: [rfc]pwm: add BCM2835 PWM driver

2014-04-08 Thread Stephen Warren
On 04/08/2014 05:02 PM, Tim Kryger wrote: > On Thu, Apr 3, 2014 at 6:44 AM, Bart Tanghe wrote: >> need some recommendation >> the memory mapped io registers of the bcm2835 pwm hardware are spreaded >> over the memory mapped io >> gpio config 0x2024 - clk config 0x201010A0 - pwm configuration 0

Re: [rfc]pwm: add BCM2835 PWM driver

2014-04-08 Thread Tim Kryger
On Thu, Apr 3, 2014 at 6:44 AM, Bart Tanghe wrote: > need some recommendation > the memory mapped io registers of the bcm2835 pwm hardware are spreaded > over the memory mapped io > gpio config 0x2024 - clk config 0x201010A0 - pwm configuration 0x2020C000 > to handle this, I've used the base a

[rfc]pwm: add BCM2835 PWM driver

2014-04-03 Thread Bart Tanghe
need some recommendation the memory mapped io registers of the bcm2835 pwm hardware are spreaded over the memory mapped io gpio config 0x2024 - clk config 0x201010A0 - pwm configuration 0x2020C000 to handle this, I've used the base address of the memory mapped io so I can use positive offset