linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Determining wich PWM to use
@ 2013-07-27 10:18 Johannes Thumshirn
  2013-08-04 11:03 ` Thierry Reding
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Thumshirn @ 2013-07-27 10:18 UTC (permalink / raw)
  To: linux-pwm; +Cc: Johannes Thumshirn

Hi list,

I'm currently working on a pwm driver for the BCM2853 (the SoC used on the
RaspberryPi). It has two PWM modules, so my question is, how do I determine
which PWM to use in the .enable, .disable and .configure functions?

If someone wants to have have a look at the preliminary code (far from being
submittable and only compile tested) it can be found here:

https://github.com/morbidrsa/linux/blob/rpi-pwm/drivers/pwm/pwm-bcm2835.c

2nd short question, is it considered good practice to encapsulate registers in
structs? I've seen this a lot on powerpc code.

Thanks for your help.

Johannes

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-04 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-27 10:18 Determining wich PWM to use Johannes Thumshirn
2013-08-04 11:03 ` Thierry Reding
2013-08-04 18:51   ` Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).