View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#1
Since the platform driver does not register the bq27200 on i2c bus, I changed the driver to register the device itself. With this change, the bq27200 appears normally on the i2c-2 bus, and you can read it's view of battery status.

Insert the two modules:

http://my.arava.co.il/~matan/770/n900/power_supply.ko
http://my.arava.co.il/~matan/770/n90...x00_battery.ko

And you will have a directory /sys/class/power_supply/bq27200-0 containing files: capacity, current_now, temp, voltage_now.

If you wish to compile it yourself, get kernel-source package, change the file drivers/power/bq27x00_battery.c to this: http://my.arava.co.il/~matan/770/n900/bq27x00_battery.c and reconfigure kernel so that CONFIG_BATTERY_BQ27x00=m.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following 14 Users Say Thank You to Matan For This Useful Post: