Re: charge control

2009-04-22 Thread Daniel Ribeiro
Em Qua, 2009-04-22 às 19:51 +0300, Ilya Petrov escreveu: > This panic occurs when i`m trying to read eoc register in > function launched by timer (using setup_timer and mod_timer). > > pda_power uses timers to pool ac and usb cables state, > it calls my function that trying to read eoc register an

Re: charge control

2009-04-22 Thread Ilya Petrov
This panic occurs when i`m trying to read eoc register in function launched by timer (using setup_timer and mod_timer). pda_power uses timers to pool ac and usb cables state, it calls my function that trying to read eoc register and check bit values. how to propertly handle this? -- wbr, Ilya

Re: charge control

2009-04-19 Thread Ilya Petrov
hmm.. looks like kernel panic is not releated to initiralisation order. i compiled pda_power as module and it produces panic: http://pastebin.com/fbef55f4 -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@jabber.ru

Re: charge control

2009-04-19 Thread Ilya Petrov
> i tried to use this with pda_power to control charging > but pda_power initialises before i2c and produces kernel panic :( here is my work on charger. when i`m using eoc_cable_conntected in ezx_is_ac_online and ezx_is_usb_online kernel fails to boot. i also moved regulator device to machine fil

Re: charge control

2009-04-19 Thread Ilya Petrov
About AC and USB connection state: this information stores in EOC register EOC_REG_INT_SENSE. i have this values on my setup: 711f with usb connected f14f with ac connected 5110 without cable connected looks like fist 4 bits indicates connected state, bit 6 indicates ac, bit 4 indicat

Re: charge control

2009-04-18 Thread Ilya Petrov
2009/4/19 GM Zhuo : > I rember voltage is 3,and current is 5~13? voltage 3 means 4.2 V. maximum value is 7 ( 4.5 V ) currents 1-13 mean n*100 mA, 14 means maximum current also about is_enabled: on my setup this code returns 0 even after calling enable(): eoc_reg_read(EOC_REG_POWER_CONTROL_0, &

charge control

2009-04-18 Thread Ilya Petrov
Hi! I`m looking at ezx-eoc.c charge-releated code now. Why eoc_charger_enable() has hardcoded value 3 ? AFAIK, normal register value is 7. on 2.4 motorola charge controlling sowtware (emud) using ioctl POWER_IC_IOCTL_CHARGER_SET_CHARGE_VOLTAGE to control this value and sets 7 for charger and 4 f