lkml.org 
[lkml]   [2009]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Using POWER or APM for battery handling
On Fri, 27 Mar 2009 22:29:47 +0300
Anton Vorontsov <avorontsov@ru.mvista.com> wrote:

> Hello Kristoffer,
>
> On Fri, Mar 27, 2009 at 08:24:06PM +0100, Kristoffer Ericson wrote:
> > Hey Anton,
> >
> > My machines (HP Jornada 600-series and HP Jornada 700-series) both
> > rely on batteries for power. Now, in the past it has all
> > been handled by an APM_EMULATION driver that
> > essentially detects the current state (loading YES/NO,
> > POWER_LEFT, ESTIMATED TIME LEFT,...) and adjusts
> > the state of the machine.
> >
> > My question is should I port this to instead
> > use the power class (drivers/power) or not.
>
> The driver is already there:
> drivers/power/apm_power.c
>
> So all you need is Jornada driver for the power supply class,
> and then apm_power.c will work for your battery driver.
>
> Feel free to ask if there is anything still not clear.

Great!

I think I understand, but should I create this driver
inside /drivers/power or inside the mach folder (in this case arch/arm/mach-sa1100)?

>
> Thanks,
>
> --
> Anton Vorontsov
> email: cbouatmailru@gmail.com
> irc://irc.freenode.net/bd2


--
Kristoffer Ericson <kristoffer.ericson@gmail.com>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2009-03-27 21:43    [W:0.128 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site