The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-07
, 16:07
|
Posts: 24 |
Thanked: 26 times |
Joined on Feb 2011
|
#253
|
|
2012-11-07
, 16:50
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#254
|
The Following 2 Users Say Thank You to joerg_rw For This Useful Post: | ||
|
2012-11-07
, 16:51
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#255
|
The Following 5 Users Say Thank You to vi_ For This Useful Post: | ||
|
2012-11-07
, 17:40
|
Posts: 24 |
Thanked: 26 times |
Joined on Feb 2011
|
#256
|
The Following User Says Thank You to zitstif For This Useful Post: | ||
|
2012-11-07
, 23:11
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#257
|
Packages are updated and here is changelog:
kernel-power (1:2.6.28-10power52) fremantle; urgency=low
* Backport upstream patch: udf-use-hw-sector-size.diff (This fix UDF FS support on SD cards and USB disks)
* Update bq2415x_charger patch: (use kstrtol, use dev_dbg, call sysfs_notify, rename N900 charger to bq24150a, fix reporting bad values, disable charging when charger disconnected)
* Added patch kstrtol.diff which define macro kstrtol as strict_strtol
* Update into about kernel-power-bootimg package
* Package kernel-power-bootimg does not provide any features
* Enable more netfilter and ipv6 modules
* Added driver rx51_battery which export battery temperature, design capacity and voltage to sysfs, provides: kernel-feature-rx51-battery
* Added patch tif_restore_sigmask-syscalls-arm.patch which fix pselect bug, added provides: kernel-feature-sigmask
* Enable bridge module, provides kernel-feature-bridge
-- Pali Rohαr <hidden> Fri, 12 Oct 2012 14:59:09 +0200
#define BQ27x00_REG_TTECP 0x26 ... cache.time_to_empty_avg = bq27x00_battery_read_time(di, BQ27x00_REG_TTECP);
Time-to-Empty At Constant Power High - Low Byte
The Following 3 Users Say Thank You to misiak For This Useful Post: | ||
|
2012-11-08
, 09:43
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#258
|
The Following 8 Users Say Thank You to pali For This Useful Post: | ||
|
2012-11-08
, 17:44
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#259
|
1) Each power_supply kernel driver must report time in seconds, so bq27x00_battery too (it convert it).
The Following 2 Users Say Thank You to misiak For This Useful Post: | ||
|
2012-11-08
, 18:14
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#260
|
At-Rate Registers (ARL/ARH) Address 0x02/0x03
The host can write the current in units of 3.57 μV per bit to this register for predictive calculation time-to-empty.
The part uses this value to predict the time-to-empty at any desired current; it does not affect the time-to-empty
calculation based on the actual current. The value in AR is always assumed to be a discharge current.
This register is also used during pack manufacturing to input a nominal available charge value to set NAC to the
approximate initial pack capacity value.
At Rate Time-to-Empty Registers (ARTTEL/ARTTEH) Address 0x04/0x05
This is predicted time-to-empty in minutes at user-entered discharge rate. The discharge current used in the
calculation is entered by the host system in the AR registers. The at-rate capacity (ARCAP) value used can be
larger or smaller than CACT. It is computed using the same formulas as CACT, except the discharge
compensation is computed using AR, instead of AI, for the discharge rate. The equation used to compute at-rate
time-to-empty is:
ARTTE = 60 * ARCAP / AR
The host system has read-only access to this register pair.
Time-to-Empty Registers (TTEL/TTEH) Address 0x16/0x17
This register pair reports calculated time-to-empty at the measured discharge rate. This value is based on the
temperature and discharge rate compensated available charge and the average current. The equation to
calculate TTE is:
TTE = 60 * CACT/AI
TTE is reported in minutes. The host system has read-only access to this register pair.
Time-to-Full Registers (TTFL/TTFH) Address 0x18/0x19
This register pair reports calculated time-to-full at the measured charge rate. The time computed at the average
current charge rate is extended by 50% to estimate the effect of the current taper. TTF is reported in minutes.
The equation for TTF is:
TTF = 60 * 1.50 * (LMD-NAC)/AI
The host system has read-only access to this register pair.
Standby Time-to-Empty Registers (STTEL/STTEH) Address 0x1C/0x1D
This register pair reports calculated time-to-empty at the measured standby current value. This value is based on
the nominal available charge and the standby current. STTE is reported in minutes. STTE is calculated by:
STTE = 60 * NAC/SI
The host system has read-only access to this register pair.
Max Load Time to Empty Registers (MLTTEL/MLTTEH) Address 0x20/0x21
This register pair reports calculated time-to-empty in minutes at the maximum measured discharge rate. The Max
Load Capacity (MLCAP) value is based on the temperature and discharge rate compensated available capacity
computed using MLI, instead of AI, for the discharge rate. MLTTE is calculated by:
MLTTE = 60 * MLCAP/MLI
The host system has read-only access to this register pair.
Time-to-Empty at Constant Power Registers (TTECPL/TTECPH) Address 0x26/0x27
TTECP is the time-to-empty in minutes with a constant power load. Because SAE is already scaled for the
average discharge voltage, the result is simply the ratio of SAE to AP:
TTECP = 60 * SAE/AP
The host system has read-only access to this register pair.
#define BQ27x00_REG_STTE 0x1c #define BQ27x00_REG_MLTTE 0x20
cache.time_to_empty = bq27x00_battery_read_time(di, BQ27x00_REG_TTE); cache.time_to_empty_avg = bq27x00_battery_read_time(di, BQ27x00_REG_TTECP);
cache.time_to_empty = bq27x00_battery_read_time(di, BQ27x00_REG_TTECP); cache.time_to_empty_avg = bq27x00_battery_read_time(di, BQ27x00_REG_TTE); cache.time_to_empty_standby = bq27x00_battery_read_time(di, BQ27x00_REG_STTE); cache.time_to_empty_maxload = bq27x00_battery_read_time(di, BQ27x00_REG_MTTE);
The Following 5 Users Say Thank You to misiak For This Useful Post: | ||
Tags |
bq2415x_charger, bq27200, kernel-power |
|
Never fear. I is here.
720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900
Community SSU developer
kernel-power developer and maintainer