Skip to content

Commit

Permalink
Merge git://git.infradead.org/battery-2.6
Browse files Browse the repository at this point in the history
* git://git.infradead.org/battery-2.6:
  power_supply_sysfs: Handle -ENODATA in a special way
  wm831x_backup: Remove unused variables
  gta02: Set pcf50633 charger_reference_current_ma
  pcf50633: Query charger status directly
  pcf50633: Properly reenable charging when the supply conditions change
  pcf50633: Get rid of charging restart software auto-triggering
  pcf50633: introduces battery charging current control
  pcf50633: Add ac power supply class to the charger
  wm831x: Factor out WM831x backup battery charger
  • Loading branch information
torvalds committed Dec 15, 2009
2 parents 7f6cd54 + 9d233e8 commit 48e902f
Show file tree
Hide file tree
Showing 10 changed files with 420 additions and 218 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-s3c2442/mach-gta02.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ struct pcf50633_platform_data gta02_pcf_pdata = {

.batteries = gta02_batteries,
.num_batteries = ARRAY_SIZE(gta02_batteries),

.charger_reference_current_ma = 1000,

.reg_init_data = {
[PCF50633_REGULATOR_AUTO] = {
.constraints = {
Expand Down
9 changes: 9 additions & 0 deletions drivers/mfd/wm831x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ static struct resource wm831x_wdt_resources[] = {
};

static struct mfd_cell wm8310_devs[] = {
{
.name = "wm831x-backup",
},
{
.name = "wm831x-buckv",
.id = 1,
Expand Down Expand Up @@ -961,6 +964,9 @@ static struct mfd_cell wm8310_devs[] = {
};

static struct mfd_cell wm8311_devs[] = {
{
.name = "wm831x-backup",
},
{
.name = "wm831x-buckv",
.id = 1,
Expand Down Expand Up @@ -1095,6 +1101,9 @@ static struct mfd_cell wm8311_devs[] = {
};

static struct mfd_cell wm8312_devs[] = {
{
.name = "wm831x-backup",
},
{
.name = "wm831x-buckv",
.id = 1,
Expand Down
7 changes: 7 additions & 0 deletions drivers/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ config APM_POWER
Say Y here to enable support APM status emulation using
battery class devices.

config WM831X_BACKUP
tristate "WM831X backup battery charger support"
depends on MFD_WM831X
help
Say Y here to enable support for the backup battery charger
in the Wolfson Microelectronics WM831x PMICs.

config WM831X_POWER
tristate "WM831X PMU support"
depends on MFD_WM831X
Expand Down
1 change: 1 addition & 0 deletions drivers/power/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ obj-$(CONFIG_POWER_SUPPLY) += power_supply.o

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

Expand Down
Loading

0 comments on commit 48e902f

Please sign in to comment.