[PATCH 4/6] various janitorial work on the pcf50633.c

Holger Freyther zecke at openmoko.org
Sat May 10 14:46:20 CEST 2008


On Saturday 10 May 2008 14:06:18 Wolfgang Spraul wrote:
> We ship only with HDQ batteries, that's correct.
> But people may well have old GTA01 batteries, or use compatible Nokia
> BL-4C/5C/6C batteries, or no-name replacements for those.
> Our battery driver and infrastructure should be as robust as possible.
> Wolfgang

The driver is robust. Currently "cat /proc/apm" is returning -1 for HDQ based 
batteries, after the patch a sane number is reported (good for the product). 
Regarding "acme replacement batteries". They will charge, "cat /proc/apm" 
will return a wrong voltage number, but we don't know the battery curve of 
these batteries anyway. The best I can think of is to have a sysfs file 
somewhere to switch between ADC and HDQ...and move this prob' to userspace.

z. 




More information about the openmoko-kernel mailing list