<splite07@...> writes:

> How to disable this behavior ?

Maybe this is a common behavior of battery enabled devices. When You connect
turned off phone to charger, it booted automatically, then show some screen
animation of charging status indicator and then probably shutdown, to
continue silent charging.
It can be implemented in u-boot\board\sunxi\board.c
You can determine if board was powered on by ACIN (not a PEK button) and
poweroff board immediately:
        if (axp209_poweron_by_dc()) {
                axp209_poweroff();
                return;//in a normal, return; is unreachable code, axp209 
should cutoff
outputs already
        }

I'm placed this code to sunxi_board_init() before any DRAM\pll inits. Now My
board started only for one\half second, after AC plugged, then it calm. At
the same time, battery seems to continue charging, because it is PMU-driven
process.
This isn't direct answer to You question (reconfigure axp209 default
behavior), but it's one acceptable solution worked for Me.

p.s.
You can google for axp209_poweroff() if You u-boot sources miss this
routine. It should be extern declared in: u-boot\include\axp209.h,
u-boot\drivers\power\axp209.c, somewhere near by axp209_poweron_by_dc().

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to