Age | Commit message (Collapse) | Author |
|
This patch makes it possible to remove the maintenance A and B
charging states and replaces them with a state that restarts the
charging when the battery voltage level dropped below a certain
level. The maintenance charging can now be turned of by setting
a flag in the board configuration.
ST-Ericsson Linux Next: -
ST-Ericsson ID: CR333019
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie5e8ab20a3b57a1028d544371b10ffbb1fd77660
Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19916
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
|
|
This reverts commit b0f0e9c93cabc87975b0ce0d039707edda5cb6b8.
Change-Id: I2602fccd7280a53bd0387a1f34037e505577a588
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18880
Tested-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Due to a bug in AB8500, BTEMP_HIGH/LOW interrupts
will be triggered everytime we enable the VDD ADC supply.
This will turn off charging for a short while.
It will be avoided by having the regulator on when
there is a charger connected.
ST-Ericsson Linux next: -
ST-Ericsson ID: ER329557
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I2a084945430f1e0a996526a194d898db13c54a29
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18610
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The charger current optimization loop has been corrected for
when the VBUS voltage collapses
ST-Ericsson Linux next: -
ST-Ericsson ID: ER328139
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie997402e3c0b868212ad59fe242f393ba0721007
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18415
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
We have the same problems with spurious temperature IRQs on
AB8500 cut 3.0 just as on previous versions.
These will have to be ignored
ST-Ericsson Linux next: -
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I29a94aadb34d27bf3a1d1ab0460d514fe9dd8798
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18413
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
This calibration is to compensate for the offset in the fuel gauge
ST-Ericsson ID: ER327880
Change-Id: Ibf7e37ea65c4e8da334dcd554da71d442f3cdcb7
Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17815
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
When the requested USB charger current is more than the
charger can deliver, the output voltage will drop and AB8500
will detect it as a not-ok charger. In this case we will try
to lower the current and try charging again
ST-Ericsson Linux next: -
ST-Ericsson ID: ER327042
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I620663643d08b214b38a7498d891f30e3e4342ca
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17544
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
During configuration of the charger, a maximum charger current is set. The requested
charger current will never be more than this.
ST-Ericsson Linux next: -
ST-Ericsson ID: WP324204
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I00e71ec126ff5f13fe1e1581020456d6609c788d
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17417
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Some lines of code were accidentally removed when patch
"Removed one level of indentation" was merged.
This patch puts them back.
ST-Ericsson ID: -
Change-Id: If8fd1a5f591d2f5232791066d89afdf5bae11cb8
Signed-off-by: Kalle Komierowski <karl.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17592
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
A small hysteresis has been added when going from a too high/low
temperature to less critical level
ST-Ericsson ID: -
Change-Id: I622b856dd14b9027ed8172f1e129980fd71b8f1d
Signed-off-by: Kalle Komierowski <karl.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17344
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Boot time is reduced 500 ms when initial capacity measurement is
done outside the probe function.
ST-Ericsson Linux next: -
ST-Ericsson ID: ER279724
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Karl-Johan Perntz <karl-johan.perntz@stericsson.com>
Change-Id: Ia24c998bd89df7aa53e4b1012ccb917b5f2b2b8e
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17364
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Due to internal synchronisation in AB8500, Enable and Kick watchdog
bits cannot be enabled in a single write.
A minimum of 2*32 kHz period (62.5µs) must be inserted between writing
Enable and Kick bits.
ST-Ericsson Linux next: -
ST-Ericsson ID: WP326349
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I5ba409a8018a7e1e6a9a872b36695ef250691c66
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17237
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Missed this line in last merge, needs to be removed..
ST-Ericsson ID: -
Change-Id: I9f5cb2a482725b6e484bcbdcaff1cb21d558bd28
Signed-off-by: Kalle Komierowski <karl.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17304
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
|
|
A new way of handling things in the x_get_psy_data function
makes it possible to remove one level of indentation.
ST-Ericsson ID: -
Change-Id: Ia711632a0d1e3cb13fcfdaea76045f598f3cbf5b
Signed-off-by: Kalle Komierowski <karl.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16791
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: QATOOLS
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ab8500_temp uses a periodic timer for doing temperature measurements.
Before entering suspend the timer needs to be cancelled and started
again when resuming. The periodic check is not needed during suspend
since the AB will trigger an IRQ if the temperature becomes too high.
Also removed the delay for when the first measurement is done since
it is no longer needed and can cause problems if we enter suspend
before the measurement has been done.
ST-Ericsson Linux next: Not tested
ST-Ericsson ID: WP 325418
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ib7376ccfa492bb6ec81b46ca6af01017a9eee8c0
Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16870
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Charger current is now maximized to compensate
for the system load while charging.
This will increase the amount of current that actually goes into
the battery.
Change-Id: I9e6a1c62758ede495b2f0dddd68e46131591233d
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16774
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The charger watchdog is kicked once we receive information that
a charger is online
ST-Ericsson Linux next: -
ST-Ericsson ID: WP325931
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I5886f725520ded0597ad9b6257bcdfe688eb6a48
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16999
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
In AB8500 there is a feature called VBAT overshoot control.
This will limit the charger current in the CV phase to avoid
overshoot on the VBAT line. This patch will allow you to disable
this feature and use real CV charging. Overshoot will be disabled
with this patch to give the best charging performance
ST-Ericsson Linux next: Not tested
ST-Ericsson ID: WP 325782
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9c14a5d9df7f8aa3bf8414c506a2fa0104c5ea61
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16847
Tested-by: Rishi KHARE <rishi.khare@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Add support to configure the EOC (end-of-charge) termination voltage
delta. The delta is no longer defined internally in the the driver as
a fixed 50mV. EOC criteria is instead mapping directly to what is
specified by the termination_vol configuration parameter.
ST-Ericsson ID: WP 324516
Change-Id: Ib6dea5efee24cacd62645b9b6e565c78728410f7
Signed-off-by: Johan Gardsmark <johan.gardsmark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16272
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
When a battery is identified as unknown, capacity calculation is
impossible and therefore disabled if charging of unknown batteries
is disabled.
ST-Ericsson Linux next: Not tested
ST-Ericsson ID: WP 325720
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1907ae5b3964a162bb36435f86eb06fdc4690401
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16820
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This patch moves the board specific charger and battery parameters
to a separate file. Also, some parameter names are corrected and
simplified.
ST-Ericsson ID: WP325165
Change-Id: I90aedb1b623f85f1c877afbe44aa8c802f5fd640
Signed-off-by: Johan Gardsmark <johan.gardsmark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16609
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds support to use non-ab8500 chargers in the ab8500 charging
algorithm. The charger specific functions are now stored in a
"sub class" charger structure with the power_supply as a
"base class".
ST-Ericsson ID: WP324917
Change-Id: I3c29c6b767209d750498ecd6b8a690d9fb073109
Signed-off-by: Johan Gardsmark <johan.gardsmark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16416
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The charger watchdog is kicked in resume to make sure it is kicked before
it expires
ST-Ericsson ID: ER324938
Change-Id: I2e837045e4910a4fead5894b4b8c43b89ef97cda
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16459
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
This patch fixes the problem of updating the USB input current limit
for USB std host on a USB link status change IRQ. The input current
limit for USB std host should only be updated on a callback from the
USB stack.
ST-Ericsson Linux next: -
ST-Ericsson ID: ER325013
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie537293e584f8c7e5296a7179cfc647710cc337d
Signed-off-by: Johan Gardsmark <johan.gardsmark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16462
Reviewed-by: QATOOLS
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Charging is not allowed if the charger voltage is above maximum limit
ST-Ericsson ID: WP324203
Change-Id: I47351975e4b59c48a93281c4f626e805b5016617
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16364
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Added ab8500_gpadc_get() API, moved gpadc and calibration structs and
channel enums.
Clients utilizing the new API.
ST-Ericsson ID: ER281133
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Daniel Willerud <daniel.willerud@stericsson.com>
Change-Id: Ief442b47ed3315d62a8b887d49bf03f9b6502e3b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16125
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The print for when a the USB state has changed is changed from
an error print to a debug print
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ib8a4fe345d53fb8df454ac07d03acd1395fe67d6
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16239
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
USB input current limit is set when the USB link status changes.
This is needed to support ACA
ST-Ericsson ID: CR281330
Change-Id: Ie0f695f0ee2754b506c220fd821dbff96d857188
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14004
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
It is possible to disable charging of batteries that are identified
as unknown. This functionality is however disabled as default
ST-Ericsson ID: WP323569
Change-Id: I312ddf1e06c4157f875af8cea234a92f0c83689a
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14869
Reviewed-by: QATOOLS
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
The Fuel Gauge algorithm has been redesigned to be able
to turn off the FG block before going to suspend.
Each sample in the capacity averaging array has a time stamp
that indicates for how long the sample is valid. If we sleep
for a very long time, the old samples have to be overwritten by new
and more valid capacity samples
ST-Ericsson ID: WP322230
Change-Id: I64e890066f588de88363bdac7fcc3991843a0c20
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14455
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Three ADC channels are calibrated in factory and the parameters
are stored in OTP. These parameters are now read and used in
the GPADC driver. Also the function ab8500_gpadc_convert now returns
a voltage instead of a raw AD-value
ST-Ericsson ID: WP322611
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I600faf8b30122a6dd95048c1059b33623f37aeeb
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14191
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
|
|
We will not report 0% capacity unless we've got the LOW_BAT IRQ,
no matter what the FG algorithm says.
ST-Ericsson ID: ER321470
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9cb85dfbb2f71d70b2f1596f4ed6ab17a991a7c0
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13741
Reviewed-by: QATOOLS
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Temperature is now measured using the internal current sources
in AB8500. This will enable us to measure temperature in the battery
with higher precision
ST-Ericsson ID: WP320571
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I2ebbf60ae8a03f7a0ddd7a6dce778ee93d5559d7
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13637
Reviewed-by: QATOOLS
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The battery current must be positive for end-of-charge
criteria to be fulfilled.
ST-Ericsson ID: ER320416
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Id499205b198929f4b5d88035bd6f9a549d03b6de
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13814
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Some minor errors reported by Coverity fixed..
ST-Ericsson ID: ER 321097
Change-Id: I2ff9504e82cc882cf1d7220438a634dccec29550
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13503
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
This patch fixes the problem with reporting 0% capacity once the low
battery IRQ has been triggered. We will allow single dips in
battery voltage without reporting 0% capacity
ST-Ericsson ID: ER320113
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I6e6a25c36c697c7401ac89a2c8569690d672c3b6
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13035
Reviewed-by: QATOOLS
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This patch fixes truncation error when converting from Ah to Wh
in the FG driver. This is needed for consistency between the
CHARGE_* and ENERGY_* properties.
ST-Ericsson Linux next: NA
ST-Ericsson ID: ER318294
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Johan Gardsmark <johan.gardsmark@stericsson.com>
Change-Id: I45167b7bfbbeac72f2fb016ca36b56218623d463
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12865
Reviewed-by: QATOOLS
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The USB driver will notify Battery Manager of the USB state and maximum
allowed current to draw from a standard host to be able to stop charging
when the device is suspended.
ST-Ericsson ID: ER319317
Change-Id: I03ec612dde641d0658fa1f1b1c0267fee91aa103
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12839
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com>
|
|
The FG driver now exports the properties ENERGY_(FULL_DESIGN/FULL/NOW)
that is needed by some user space applications that handles battery aging.
Also the property CHARGE_FULL is exported
ST-Ericsson ID: ER318294
Change-Id: I56d19a5eae1447b0a7399747c3b6023645698ca1
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12107
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: I3712352f8fe941e645f6df8ddf1a47200ce5ff33
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12307
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Change-Id: I553a38fc08dbb6c341ad261306f83629adf7dd02
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12204
Reviewed-by: QATOOLS
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
|
|
The Battery Manager driver has been re-designed and re-written
in order to be more flexible and easier to maintain.
Four drivers has been developed:
ab8500_charger: driver for controlling the AC and USB charger blocks
in the AB8500
ab8500_btemp: in charge of identifying the battery and measuring the
battery temperature.
ab8500_fg: driver for calculating remaining capacity as well as
providing the charging algorithm with battery data.
ab8500_chargalg: the charging algorithm is implemented here.
The drivers share data through properties in the power_supply framework
ST-Ericsson ID: AP 281949
Change-Id: Ie8d4b56edb1db9624a0fc37f408ee2d3d834b9ac
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10966
Reviewed-by: QATOOLS
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This patch fixes some warnings generated by sparse.
ST-Ericsson Linux next: NA
ST-Ericsson Id: NA
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Change-Id: If5f04bcad8748d696505d700c0421ae781d2bcd8
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11601
Reviewed-by: QATOOLS
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
There is a bug in rev1.1 of AB8500 which means that we have to continously
kick the charger watchdog every 60 seconds or else it will power off.
This error only occurs when you connect and then disconnect the DCIO charger.
The solution is to wake up periodically on the FG IRQ and kick the charger
watchdog. This is only done for ABB rev1.1 and when the DCIO charger has
been enabled.
We also take a wakelock when a DCIO charger is connected to be able to control
algorithm execution. This is a battery safety issue. Also small changes is
introduced to allow USB charging with ABB rev 1.1.
ST-Ericsson ID: ER280739
Change-Id: I9fa63299be874c7b1c34144e8bfabc64adb5da00
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11208
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Only one power supply of type Battery can export each property.
That is why only the main battery can be registered as a power
supply and not the backup battery. Without this patch, Android
Battery Manager code will use the properties from the backup battery
and that is incorrect
ST-Ericsson ID: ER278993
Change-Id: I014079fa769f96d5bb7bb072b68c12a41f97329e
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11125
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The battery capacity is averaged over time to avoid
spikes and dips in the capacity we report
ST-Ericsson ID: ER 282537
Change-Id: Id0429c4c28c9e55d27b4b4b3f76a4138f724890e
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10864
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Removing the wrong function calls in usb which is called by the battery
manager.
ST EricssonID:278744
Change-Id: Ib2db0923dba5b89bc2e05046783a00dbea2e6f54
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8985
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
This patch changes the use of IRQF_TIMER to IRQF_NO_SUSPEND.
The IRQF_NO_SUSPEND flag will make the system wakeup from suspend.
This patch also makes the system wakeup for AB8500 events.
A few subdrivers to AB8500 irqs are also configured to wake up.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
ST-Ericsson ID: ER 277523
Change-Id: I7737656716f81963f48cfb87ebd2c817f0e8cba9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8422
Tested-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Battery removal support has been implemented as well as
corrections in the power supply class attributes that are
exported by ab8500_bm.
ST-Ericsson ID: AP277144
Change-Id: Ifb8a405b6148f71bd20827edc0020e82f61b81a7
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7118
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Changed the way the PCB NTC resistance to temperature table
is used and stored. Before two tables of different structures
were used. Now one type for both battery pack and PCB
mounted NTC is used. The PCB NTC resistor characteristics
is now placed in board configuration instead of being hardcoded
in driver.
Change-Id: I5ba9e07d48351e574a34f1cac4b4e6bccd37d1f5
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Change-Id: I1ec5f04f5e40badea6049999ced027f146cf0d0d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7078
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|