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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox