- 27 5月, 2010 1 次提交
-
-
由 Lars-Peter Clausen 提交于
Register a device newly added pcf50633-backlight driver as a child device in the pcf50633 core driver. Signed-off-by: NLars-Peter Clausen <lars@metafoo.de> Acked-by: NSamuel Ortiz <sameo@linux.intel.com> Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
-
- 14 12月, 2009 1 次提交
-
-
由 Lars-Peter Clausen 提交于
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: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NPaul Fertser <fercerpav@gmail.com> Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
-
- 16 11月, 2009 2 次提交
-
-
由 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: NPaul Fertser <fercerpav@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Balaji Rao 提交于
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: NBalaji Rao <balajirrao@openmoko.org> Signed-off-by: NPaul Fertser <fercerpav@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
- 17 9月, 2009 1 次提交
-
-
由 Paul Fertser 提交于
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: NPaul Fertser <fercerpav@gmail.com> Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
-
- 03 2月, 2009 1 次提交
-
-
由 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: NBalaji Rao <balajirrao@openmoko.org> Cc: Andy Green <andy@openmoko.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
- 11 1月, 2009 1 次提交
-
-
由 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: NBalaji Rao <balajirrao@openmoko.org> Cc: Andy Green <andy@openmoko.com> Signed-off-by: NSamuel Ortiz <sameo@openedhand.com>
-