24 Oct, 2011

1 commit


29 Oct, 2010

1 commit


27 May, 2010

2 commits


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
     

14 Dec, 2009

1 commit

  • Since platform_device_add_data copies the passed data, the allocated
    subdev_pdata is never freed. A simple fix would be to either free subdev_pdata
    or put it onto the stack. But since the pcf50633 child devices can rely on
    beeing children of the pcf50633 core device it's much more elegant to get access
    to pcf50633 core structure through that link. This allows to get completly rid
    of pcf5033_subdev_pdata.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Paul Fertser
    Signed-off-by: Samuel Ortiz

    Lars-Peter Clausen
     

16 Nov, 2009

3 commits

  • Current scheme is fragile and is likely to go off sync, especially on
    batfull->adapter charging automatic MBC transition.

    Query the status bit every time we need it instead.

    We need to export another function to query for USB presence because
    we can't read anything from PCF50633 (via I2C) inside irq context and
    that is needed by usb gadgets.

    Signed-off-by: Paul Fertser
    Signed-off-by: Anton Vorontsov

    Paul Fertser
     
  • After reaching Battery Full condition MBC state machine switches back
    into charging mode when the battery voltage falls below 96% of a
    battery float voltage. The voltage drop in Li-Ion batteries is
    marginal (1-2%) till about 80% of its capacity - which means, after a
    BATFULL, charging won't be restarted until 75-80%.

    That is a desired behaviour recommended by battery manufacturers,
    don't mess with it.

    Signed-off-by: Paul Fertser
    Signed-off-by: Anton Vorontsov

    Paul Fertser
     
  • Implement a new sysfs attribute to allow changing MBC charging limit on
    the fly independently of usb current limit. It also gets set
    automatically every time usb current limit is changed.

    Limiting charging current also prevents violating USB specification in
    the case when the whole device is shut down and usb current limit is
    reset to the factory default by the pcf50633 state transition.

    Signed-off-by: Balaji Rao
    Signed-off-by: Paul Fertser
    Signed-off-by: Anton Vorontsov

    Balaji Rao
     

17 Sep, 2009

2 commits


03 Feb, 2009

2 commits

  • The 'pcf50633_mbc_set_status' function is unused, so remove it.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Anton Vorontsov

    Balaji Rao
     
  • The battery charger state machine switches into charging mode when
    the battery voltage falls below 96% of a battery float voltage. But
    the voltage drop in Li-ion batteries is marginal(1~2 %) till about
    80% of its capacity - which means, after a BATFULL, charging won't
    be restarted until 80%.

    This work_struct function restarts charging at regular intervals to
    make sure the battery doesn't discharge too much.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Anton Vorontsov

    Balaji Rao
     

11 Jan, 2009

5 commits

  • Changes from V1:
    - Removed support for suspend_enable & suspend_disable functions.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Cc: Liam Girdwood
    Acked-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • Signed-off-by: Balaji Rao
    Cc: Andy Green
    Cc: David Woodhouse
    Acked-by: Anton Vorontsov
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • What the PCF05633 calls as a 'GPIO' is much more than the GPIO in the linux
    sense and there are only 4 of them - which means, the gpiolib is not used
    here.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • This patch adds basic support for the PCF50633 ADC. The subtractive mode
    is not supported yet.

    Since we don't have adc subsystem, it currently lives in drivers/mfd.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Acked-by: Jonathan Cameron
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • This patch implements the core of the PCF50633 driver. This core driver has
    generic register read/write functions and does interrupt management for its
    sub devices.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Samuel Ortiz

    Balaji Rao