From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] initial regulator support
Date: Mon, 28 Apr 2014 10:18:39 +0200 [thread overview]
Message-ID: <1398673121-6075-1-git-send-email-s.hauer@pengutronix.de> (raw)
This adds simple regulator support. For now this adds a bare minimum of
regulator support: regulators can only be enabled and disabled, no voltage
setting is supported. The only way to associate a device with a regulator
is via devicetree, so platform devices currently cannot use this API.
As a first user The MMC layer gets regulator support, so that the common
case of a gpio enabling a MMC slot is covered.
Sascha
----------------------------------------------------------------
Sascha Hauer (2):
Add initial regulator support
mci: Add regulator support
commands/Kconfig | 8 ++
commands/Makefile | 1 +
commands/regulator.c | 33 ++++++
drivers/Kconfig | 1 +
drivers/Makefile | 1 +
drivers/mci/mci-core.c | 18 +++-
drivers/regulator/Kconfig | 13 +++
drivers/regulator/Makefile | 2 +
drivers/regulator/core.c | 262 +++++++++++++++++++++++++++++++++++++++++++++
drivers/regulator/fixed.c | 103 ++++++++++++++++++
include/mci.h | 2 +
include/regulator.h | 47 ++++++++
12 files changed, 489 insertions(+), 2 deletions(-)
create mode 100644 commands/regulator.c
create mode 100644 drivers/regulator/Kconfig
create mode 100644 drivers/regulator/Makefile
create mode 100644 drivers/regulator/core.c
create mode 100644 drivers/regulator/fixed.c
create mode 100644 include/regulator.h
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2014-04-28 8:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 8:18 Sascha Hauer [this message]
2014-04-28 8:18 ` [PATCH 1/2] Add " Sascha Hauer
2014-04-28 16:30 ` Alexander Aring
2014-04-28 16:41 ` Alexander Aring
2014-04-28 18:47 ` Sascha Hauer
2014-04-28 18:51 ` Alexander Aring
2014-04-28 20:00 ` Sascha Hauer
2014-04-28 20:08 ` Alexander Aring
2014-04-28 8:18 ` [PATCH 2/2] mci: Add " Sascha Hauer
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=1398673121-6075-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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