Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3961f7c3 authored by Mark Brown's avatar Mark Brown Committed by Anton Vorontsov
Browse files

power_supply: Add driver for the PMU on WM831x PMICs



The WM831x PMICs provide power path management from three sources:
a wall supply, USB and a battery with integrated charger. They also
provide an additional backup supply with integrated for maintaining
always on functionality such as the RTC and monitoring of power
switches.

After some initial configuration at startup the device operates
autonomously, the driver simply provides reporting of the current
state.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
parent b0525b48
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -29,6 +29,13 @@ config APM_POWER
	  Say Y here to enable support APM status emulation using
	  Say Y here to enable support APM status emulation using
	  battery class devices.
	  battery class devices.


config WM831X_POWER
	tristate "WM831X PMU support"
	depends on MFD_WM831X
	help
	  Say Y here to enable support for the power management unit
	  provided by Wolfson Microelectronics WM831x PMICs.

config WM8350_POWER
config WM8350_POWER
        tristate "WM8350 PMU support"
        tristate "WM8350 PMU support"
        depends on MFD_WM8350
        depends on MFD_WM8350
+1 −0
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@ obj-$(CONFIG_POWER_SUPPLY) += power_supply.o


obj-$(CONFIG_PDA_POWER)		+= pda_power.o
obj-$(CONFIG_PDA_POWER)		+= pda_power.o
obj-$(CONFIG_APM_POWER)		+= apm_power.o
obj-$(CONFIG_APM_POWER)		+= apm_power.o
obj-$(CONFIG_WM831X_POWER)	+= wm831x_power.o
obj-$(CONFIG_WM8350_POWER)	+= wm8350_power.o
obj-$(CONFIG_WM8350_POWER)	+= wm8350_power.o


obj-$(CONFIG_BATTERY_DS2760)	+= ds2760_battery.o
obj-$(CONFIG_BATTERY_DS2760)	+= ds2760_battery.o
+779 −0

File added.

Preview size limit exceeded, changes collapsed.

+189 −0

File added.

Preview size limit exceeded, changes collapsed.