[PATCH 4/6] various janitorial work on the pcf50633.c
zecke at openmoko.org
Sat May 10 12:25:37 CEST 2008
On Saturday 10 May 2008 11:37:33 joerg at openmoko.org wrote:
> Am Fr 9. Mai 2008 schrieb Holger Freyther:
> > From 2ce5e12156c3aaf4574b736bbaf103f40c593d14 Mon Sep 17 00:00:00 2001
> > From: Holger Freyther <zecke at openmoko.org>
> > Date: Thu, 8 May 2008 23:15:46 +0200
> > Subject: [PATCH] [pcf50633] Assume that all gta02's have a battery with
> > coulumb counter
> > For the gta02 and the bq27000 battery it does not make sense to use
> > the ADC to get the current voltage. Under the assumption that all mass
> > production gta02's have such batteries it does not make any sense to
> > forward this value to APM.
> We may use GTA01 or even Nokia replacement batteries! Those don't have
> bq2700. Think we should be able to handle these too though.
> Just a comment from Ur hw-department, I had no look at the source at all
Even worse. You can start with a bq27000 battery and then switch to a
replacement battery not having a bq27000 at runtime. You would have to
constantly monitor if the battery speaks HDQ and then switch the APM callback
method to either the pcf50633 or the apm_power one. Sadly there is no runtime
framework for such things inside the kernel.
From these options having a working /proc/apm by default was the most sane
solution I could think of.
More information about the openmoko-kernel