10 Jan, 2012

1 commit

  • There are some problems with MFD part of this driver, so the
    driver fails to build:

    drivers/power/da9052-battery.c: In function 'da9052_bat_read_volt':
    drivers/power/da9052-battery.c:293:2: error: implicit declaration of function 'da9052_adc_manual_read' [-Werror=implicit-function-declaration]
    drivers/power/da9052-battery.c: In function 'da9052_bat_check_presence':
    drivers/power/da9052-battery.c:306:2: error: implicit declaration of function 'da9052_adc_read_temp' [-Werror=implicit-function-declaration]
    drivers/power/da9052-battery.c: In function 'da9052_determine_vc_tbl_index':
    drivers/power/da9052-battery.c:348:1: warning: control reaches end of non-void function [-Wreturn-type]
    cc1: some warnings being treated as errors

    The fix for MFD part will probably go post -rc1 (or in the next merge
    window), so let's disable the driver for now.

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

    Anton Vorontsov
     

06 Jan, 2012

2 commits

  • Driver for DA9052 battery charger. This driver depends on DA9052 MFD core
    dirver for definitions and methods.

    This patch is functionally tested on Samsung SMDKV6410.

    Signed-off-by: David Dajun Chen
    Signed-off-by: Ashish Jangam
    Signed-off-by: Anton Vorontsov

    Ashish Jangam
     
  • This driver for the bq20z75 implemented the register spec defined
    by the SBS standard. As this is not unique to this the TI part this
    was originally written for, we can generalize this driver to
    show its support for any SBS compliant battery.

    Signed-off-by: Rhyland Klein
    Signed-off-by: Anton Vorontsov

    Rhyland Klein
     

04 Jan, 2012

3 commits


02 Nov, 2011

1 commit


01 Aug, 2011

1 commit

  • * git://git.infradead.org/battery-2.6:
    gpio-charger: Fix checking return value of request_any_context_irq
    power_supply: MAX17042: Support additional properties
    max8903_charger: Allow platform data to be __initdata
    power_supply: Add charger driver for MAX8998/LP3974
    power_supply: Add charger driver for MAX8997/8966
    max17042_battery: Remove obsolete cleanup for clientdata
    twl4030_charger: Fix warnings
    wm831x_power: Support multiple instances
    wm831x_backup: Support multiple instances
    apm_power: Fix style error in macros
    s3c_adc_battery: Fix annotation for s3c_adc_battery_probe()
    bq20z75: Enable detection after registering
    bq20z75: Add support for external notification

    Linus Torvalds
     

08 Jul, 2011

2 commits

  • This patch supports power supply APIs for MAX8998/LP3974.

    Signed-off-by: Donggeun Kim
    Signed-off-by: MyungJoo Ham
    Signed-off-by: KyungMin Park
    Acked-by: Samuel Ortiz
    Signed-off-by: Anton Vorontsov

    Donggeun Kim
     
  • MAX8997/8966 chip is a multi-function device which includes
    PMIC, RTC, Fuel Gauge, MUIC, Haptic, Flash control, and
    Battery charging control.
    The driver for it is located at drivers/mfd.

    This patch supports battery charging control of MAX8997/8966 chip and
    provides power supply class information to userspace.

    Signed-off-by: Donggeun Kim
    Signed-off-by: MyungJoo Ham
    Signed-off-by: KyungMin Park
    Acked-by: Samuel Ortiz
    Signed-off-by: Anton Vorontsov

    Donggeun Kim
     

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

1 commit