From: Johannes Thumshirn <morbidrsa@gmail.com>
To: linux-pwm@vger.kernel.org
Cc: Johannes Thumshirn <morbidrsa@gmail.com>
Subject: Determining wich PWM to use
Date: Sat, 27 Jul 2013 12:18:24 +0200 [thread overview]
Message-ID: <20130727101824.GA11956@sauron.fritz.box> (raw)
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
next reply other threads:[~2013-07-27 10:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-27 10:18 Johannes Thumshirn [this message]
2013-08-04 11:03 ` Determining wich PWM to use Thierry Reding
2013-08-04 18:51 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130727101824.GA11956@sauron.fritz.box \
--to=morbidrsa@gmail.com \
--cc=linux-pwm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).