Since the possible values for the charging rate is basically a simple ENUM, I think Paul's suggestion is a good one (kconfig item)


On Fri, Aug 9, 2013 at 5:09 AM, Ash Charles <ashcharles@gmail.com> wrote:
Hi Paul,

The trickle charging is enabled by CONFIG_RTC_DRV_TWL4030.  In the
Linux source code, the driver can be found in
<linux>/drivers/rtc/rtc-twl.c
(https://github.com/gumstix/linux/blob/omap-3.2/drivers/rtc/rtc-twl.c)

In the probe function, you can see some code along the lines of
        /* enable backup battery charging */
        /* use a conservative 25uA @ 3.1V */
        ret = twl_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
                BIT_PM_RECEIVER_BB_CFG_BBCHEN |
                BIT_PM_RECEIVER_BB_CFG_BBSEL_3V1 |
                BIT_PM_RECEIVER_BB_CFG_BBISEL_25UA,
                REG_BB_CFG);

--Ash

On Thu, Aug 8, 2013 at 9:39 AM, Paul D. DeRocco <pderocco@ix.netcom.com> wrote:
>> From: Ash Charles [mailto:ashcharles@gmail.com]
>>
>> For what it's worth, I could bump up the default charge rate for the
>> Gumstix kernels.  Does this cause problems or help anyone out?  IIRC,
>> it is set low just to be safe.
>
> Isn't there some way to make this configurable through menuconfig, or by
> supplying a configuration fragment? (A proc file interface would be even
> better, but it's probably not worth going to that much trouble.)
>
> Meanwhile, what kernel source file contains this stuff, so I can hack mine
> today?
>
> --
>
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco@ix.netcom.com
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users