24 Oct, 2011
1 commit
-
Signed-off-by: Mark Brown
Tested-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz
29 Oct, 2010
1 commit
-
Fixed warnings about unprototyped global functions.
Signed-off-by: Mark Brown
Signed-off-by: Samuel Ortiz
27 May, 2010
2 commits
-
Register a device newly added pcf50633-backlight driver as a child device in
the pcf50633 core driver.Signed-off-by: Lars-Peter Clausen
Acked-by: Samuel Ortiz
Signed-off-by: Richard Purdie -
This patch adds a backlight driver for controlling the pcf50633 LED module.
Signed-off-by: Lars-Peter Clausen
Acked-by: Samuel Ortiz
Signed-off-by: Richard Purdie
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
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
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 -
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 -
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
17 Sep, 2009
2 commits
-
The 10 bits definition was the 8 bits one.
Signed-off-by: Paul Fertser
Signed-off-by: Samuel Ortiz -
Using the default kernel "events" workqueue causes problems with
synchronous adc readings if initiated from some task on the same
workqueue.I had a deadlock trying to use pcf50633_adc_sync_read from a
power_supply class driver because the reading was initiated from the
workqueue and it waited for the irq processing to complete (to get the
result) and that was put on the same workqueue.Signed-off-by: Paul Fertser
Signed-off-by: Samuel Ortiz
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 -
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
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 -
Signed-off-by: Balaji Rao
Cc: Andy Green
Cc: David Woodhouse
Acked-by: Anton Vorontsov
Signed-off-by: Samuel Ortiz -
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 -
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 -
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