mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] initial regulator support
@ 2014-04-28  8:18 Sascha Hauer
  2014-04-28  8:18 ` [PATCH 1/2] Add " Sascha Hauer
  2014-04-28  8:18 ` [PATCH 2/2] mci: Add " Sascha Hauer
  0 siblings, 2 replies; 9+ messages in thread
From: Sascha Hauer @ 2014-04-28  8:18 UTC (permalink / raw)
  To: barebox

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

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

end of thread, other threads:[~2014-04-28 20:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28  8:18 [PATCH] initial regulator support Sascha Hauer
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox