28 May, 2011

1 commit

  • * git://git.infradead.org/battery-2.6:
    PXA: Use dev_pm_ops in z2_battery
    ds2760_battery: Fix rated capacity of the hx4700 1800mAh battery
    ds2760_battery: Fix indexing of the 4 active full EEPROM registers
    power: Make test_power driver more dynamic.
    bq27x00_battery: Name of cycle count property
    max8903_charger: Add GENERIC_HARDIRQS as a dependency (fixes S390 build)
    ARM: RX-51: Enable isp1704 power on/off
    isp1704_charger: Allow board specific powering routine
    gpio-charger: Add gpio_charger_resume
    power_supply: Add driver for MAX8903 charger

    Linus Torvalds
     

27 May, 2011

1 commit

  • Add support for the Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC.

    It was suggested to combine this functionality with the current ds2782
    driver. Unfortunately, I'm unable to commit the time to refactoring this
    driver to that extent and I don't have a platform with the ds2782 part to
    validate that there are no regression issues by adding this functionality.

    [akpm@linux-foundation.org: use min_t()]
    Signed-off-by: Clifton Barnes
    Tested-by: Haojian Zhuang
    Cc: Evgeniy Polyakov
    Cc: Ryan Mallon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Clifton Barnes
     

22 Apr, 2011

1 commit

  • S390 is special as it doesn't have IRQ lines, so these errors pop up:

    drivers/built-in.o: In function 'max8903_remove':
    drivers/power/max8903_charger.c:355: undefined reference to 'free_irq'
    drivers/power/max8903_charger.c:357: undefined reference to 'free_irq'
    drivers/power/max8903_charger.c:359: undefined reference to 'free_irq'

    This commit fixes the issue by making the driver depend on
    GENERIC_HARDIRQS feature.

    Reported-by: Stephen Rothwell
    Signed-off-by: Anton Vorontsov

    Anton Vorontsov
     

20 Apr, 2011

1 commit

  • MAX8903 is an integrated battery charger and selector with two
    power inputs (USB and AC adapter). This driver enables the charger,
    handles interrupts, and provides power-supply-class information to
    userland.

    Tested on Exynos4 NURI / S5PC210 SLP7 boards.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Anton Vorontsov

    MyungJoo Ham
     

22 Feb, 2011

1 commit

  • This patch adds support for the bq27000 battery to the bq27x00 driver.
    The bq27000 is similar to the bq27200 except that it uses the HDQ bus
    instead of I2C to communicate with the host system.

    The driver is implemented as a platform driver. The driver expects to be
    provided with a read callback function through its platform data. The read
    function is assumed to do the lowlevel HDQ handling and read out the value
    of a certain register.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     

14 Jan, 2011

1 commit

  • The MAX17042 is a fuel gauge with an I2C interface for lithium-ion
    betteries. Unlike its predecessor MAX17040, MAX17042 uses 16bit
    registers. Besides, MAX17042 has much more features than MAX17040; e.g.,
    a thermistor, current and current accumulation measurement, battery
    internal resistance estimate, average values of measurement, and others.

    This patch implements a driver for MAX17042.
    In this initial release, we have implemented the most basic features of
    a fuel gauge: measure the battery capacity and voltage.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Anton Vorontsov

    MyungJoo Ham
     

18 Nov, 2010

1 commit


29 Oct, 2010

1 commit


28 Oct, 2010

1 commit

  • The driver is not buildable without MFD changes. For now, let's
    disable the driver as it breaks build for major platforms (i.e. x86).

    CC [M] drivers/power/twl4030_charger.o
    drivers/power/twl4030_charger.c: In function 'twl4030_clear_set_boot_bci':
    drivers/power/twl4030_charger.c:105: error: 'TWL4030_PM_MASTER_BOOT_BCI' undeclared (first use in this function)
    drivers/power/twl4030_charger.c:105: error: (Each undeclared identifier is reported only once
    drivers/power/twl4030_charger.c:105: error: for each function it appears in.)
    drivers/power/twl4030_charger.c: In function 'twl4030_bci_have_vbus':
    drivers/power/twl4030_charger.c:137: error: 'TWL4030_PM_MASTER_STS_HW_CONDITIONS' undeclared (first use in this function)
    drivers/power/twl4030_charger.c: In function 'twl4030_bci_probe':
    drivers/power/twl4030_charger.c:477: warning: overflow in implicit constant conversion
    drivers/power/twl4030_charger.c:485: warning: overflow in implicit constant conversion
    make[2]: *** [drivers/power/twl4030_charger.o] Error 1

    We can re-enable it if MFD tree will finally merge into 2.6.37.

    Reported-by: Ingo Molnar
    Signed-off-by: Anton Vorontsov

    Anton Vorontsov
     

30 Sep, 2010

1 commit


23 Sep, 2010

1 commit


06 Sep, 2010

1 commit


19 Aug, 2010

1 commit


13 Aug, 2010

1 commit

  • * git://git.infradead.org/battery-2.6:
    intel_mid_battery: Fix battery scaling
    intel_mid_battery: Fix the argument order to intel_scu_ipc_command
    olpc_battery: Fix build failure caused by sysfs changes
    Add s3c-adc-battery driver
    Intel MID platform battery driver

    Fix up trivial conflicts (battery drivers added from different branches)
    in drivers/power/{Kconfig,Makefile}

    Linus Torvalds
     

05 Aug, 2010

1 commit

  • Add support for the battery voltage measurement part of the JZ4740 ADC unit.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Anton Vorontsov
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1416/
    Signed-off-by: Ralf Baechle

    Lars-Peter Clausen
     

23 Jul, 2010

1 commit

  • s3c-adc-battery is driver for monitoring and charging battery on
    iPAQ H1930/H1940/RX1950.

    It depends on s3c-adc driver to get battery voltage and current.

    Signed-off-by: Vasily Khoruzhick
    Signed-off-by: Anton Vorontsov

    Vasily Khoruzhick
     

18 Jun, 2010

1 commit

  • The PMIC Battery driver provides battery charging and battery gauge
    functionality on Intel MID platforms. This provides the basic functions.
    There are some USB drivers to merge before the selection of charging
    between the different USB power levels can be enabled.

    Moved to a platform device by Alek Du.

    Signed-off-by: Nithish Mahalingam
    Signed-off-by: Alan Cox
    Signed-off-by: Anton Vorontsov

    Nithish Mahalingam
     

18 May, 2010

1 commit


27 Apr, 2010

1 commit


07 Apr, 2010

1 commit

  • This patch adds driver for Zipit Z2 battery chip called AER915. No
    details are known about the chip. The chip is available through I2C bus
    at address 0x55 and it's register 0x02 contains battery voltage.

    Signed-off-by: Marek Vasut
    Signed-off-by: Anton Vorontsov

    Marek Vasut
     

08 Mar, 2010

1 commit


17 Feb, 2010

1 commit

  • BQ27500 is newer fuel gauge chip from TI with slightly changed
    register layout and some different register semantics. Add new i2c
    ID for it and handle differences where needed. Also rename bq27200
    functions to bq27x00, as they are no longer bq27200 specific.

    Signed-off-by: Grazvydas Ignotas
    Acked-by: Rodolfo Giometti
    Signed-off-by: Anton Vorontsov

    Grazvydas Ignotas
     

16 Dec, 2009

1 commit

  • * 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

    Linus Torvalds
     

28 Nov, 2009

1 commit


16 Nov, 2009

1 commit

  • The backup battery on WM831x is a separate IP block to the main PMU
    and is largely unrelated to the main supply functionality. Factor it
    out into a separate driver in order to reflect this and better support
    future hardware versions.

    Signed-off-by: Mark Brown
    Acked-by: Samuel Ortiz
    Signed-off-by: Anton Vorontsov

    Mark Brown
     

05 Sep, 2009

1 commit

  • 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: Mark Brown
    Signed-off-by: Anton Vorontsov

    Mark Brown
     

01 Jul, 2009

1 commit


09 Jun, 2009

1 commit


11 Jan, 2009

1 commit


04 Jan, 2009

2 commits

  • Driver for battery charger integrated into Dialog Semiconductor DA9030 PMIC

    Signed-off-by: Mike Rapoport
    Acked-by: Anton Vorontsov
    Signed-off-by: Samuel Ortiz

    Mike Rapoport
     
  • This patch adds support for the PMU provided by the WM8350 which
    implements battery, line and USB supplies including a battery charger.
    The hardware functions largely autonomously, with minimal software
    control required to initiate fast charging.

    Support for configuration of the USB supply is not yet implemented.
    This means that the hardware will remain in the mode configured at
    startup, by default limiting the current drawn from USB to 100mA.

    This driver was originally written by Liam Girdwood with subsequent
    updates for submission by Mark Brown.

    Signed-off-by: Mark Brown
    Acked-by: Anton Vorontsov
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

19 Oct, 2008

1 commit


13 Oct, 2008

1 commit


03 Oct, 2008

1 commit


26 Sep, 2008

1 commit


01 Sep, 2008

1 commit

  • These battery managers came in two different packages: one for I2C
    busses (BQ27200) and one for HDQ busses (BQ27000).

    This driver currently supports only the I2C chip version but the code
    is designed in order to easily allow the HDQ chip version integration.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: make things static, use kasprintf()]
    Signed-off-by: Rodolfo Giometti
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Anton Vorontsov

    Rodolfo Giometti
     

30 Jul, 2008

1 commit


10 Jul, 2008

1 commit


01 Jul, 2008

1 commit


23 Jul, 2007

1 commit

  • As reported by Stephen Rothwell, an allmodconfig build on 64-bit
    PowerPC reports these errors:

    ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined!
    ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined!
    ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined!

    This fixes the problem by not building pmu_battery.ko on ppc64. There
    are no battery-powered ppc64 machines with an Apple PMU, and we can be
    reasonably confident there never will be.

    Signed-off-by: Paul Mackerras
    Signed-off-by: David Woodhouse

    Paul Mackerras