Hunter,
Tried to search the u-boot for your suggestions, but couldn't find it anywhere 
with a hex editor. So in A31 this has to be something else. Thanks for the tip 
anyway :)

/JJ 


> drivers/power/axp209.c
> 
> //this function is called from generic board.c
> 198 int axp209_poweron_by_dc(void)                                            
>                                                                               
>                      
> 199 {
> 200     u8 v;
> 201
> 202     if (axp209_read(AXP209_POWER_STATUS, &v))
> 203         return 0;
> 204     return (v & AXP209_POWER_STATUS_ON_BY_DC);
> 205 }
> 
> 
> 
> //board/sunxi/board.c
> 143 #if defined(CONFIG_SPL_OS_BOOT) && defined(CONFIG_AXP209_POWER)
> 144 int spl_start_uboot(void)
> 145 {
> 146     if (axp209_poweron_by_dc())                                           
>                                                                               
>                      
> 147         return 0;
> 148     axp209_power_button(); /* Clear any pending button event */
> 149     mdelay(100);
> 150     return axp209_power_button();
> 151 }
> 152 #endif
> 
> 

> 

-- 
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