From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
To: joshc@codeaurora.org, linux-arm-msm@vger.kernel.org
Subject: [RFC WIP 0/2] Qualcomm family A RPM driver and example client
Date: Tue, 22 Apr 2014 11:20:03 -0700 [thread overview]
Message-ID: <1398190805-28577-1-git-send-email-bjorn.andersson@sonymobile.com> (raw)
To be used for reference in the design discussion related to RPM driver
implementation for family A.
Regulator driver is a not even close to the shape it should be, but shows a
user of the api. Instead of having every regulator exposed as it's own
compatible, I would now have it take a resource id as reg and just be
compatible with the specific resource consumer.
The difference with Josh's proposal is the mapping table in msm_rpm.c, that
makes the rpm driver expose logical resources and therefor hides the details of
the rpm communication from its clients. This gives, in my mind, a cleaner
abstraction and api.
Bjorn Andersson (2):
mfd: msm_rpm: Initial driver for the Qualcomm RPM
regulator: msm_rpm: Initial regulator driver for Qualcomm RPM
drivers/mfd/Kconfig | 7 +
drivers/mfd/Makefile | 1 +
drivers/mfd/msm_rpm-8064.h | 420 +++++++++++++++++++++++++++
drivers/mfd/msm_rpm-8960.h | 400 ++++++++++++++++++++++++++
drivers/mfd/msm_rpm.c | 525 ++++++++++++++++++++++++++++++++++
drivers/regulator/Kconfig | 7 +
drivers/regulator/Makefile | 1 +
drivers/regulator/msm_rpm-regulator.c | 467 ++++++++++++++++++++++++++++++
include/linux/mfd/msm_rpm.h | 87 ++++++
9 files changed, 1915 insertions(+)
create mode 100644 drivers/mfd/msm_rpm-8064.h
create mode 100644 drivers/mfd/msm_rpm-8960.h
create mode 100644 drivers/mfd/msm_rpm.c
create mode 100644 drivers/regulator/msm_rpm-regulator.c
create mode 100644 include/linux/mfd/msm_rpm.h
--
1.8.2.2
next reply other threads:[~2014-04-22 18:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 18:20 Bjorn Andersson [this message]
2014-04-22 18:20 ` [RFC WIP 1/2] mfd: msm_rpm: Initial driver for the Qualcomm RPM Bjorn Andersson
2014-04-22 18:20 ` [RFC WIP 2/2] regulator: msm_rpm: Initial regulator driver for " Bjorn Andersson
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=1398190805-28577-1-git-send-email-bjorn.andersson@sonymobile.com \
--to=bjorn.andersson@sonymobile.com \
--cc=joshc@codeaurora.org \
--cc=linux-arm-msm@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).