Thread
:
Reading battery status using bq27200
View Single Post
Matan
2010-04-01 , 14:09
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.
Quote & Reply
|
The Following 14 Users Say Thank You to Matan For This Useful Post:
ArnimS
,
b-man
,
chrget
,
Estel
,
foobar
,
int_ua
,
joerg_rw
,
krk969
,
peterleinchen
,
qwerty12
,
Rob1n
,
slender
,
tomaszf
,
v13
Matan
View Public Profile
Send a private message to Matan
Find all posts by Matan