Age | Commit message (Collapse) | Author |
|
Change-Id: I2fcf46d1fc4b0cd4c61e5be3654c43b80db86015
|
|
Send UEvent when battery voltage is low/high so that android power framework
is being notified and actions are taken by android accordingly.
This also ensure that the paltform is shutdown cleanly when battery voltage
is below lower threshold.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 365061
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I01e3579ba5860244cd5837c8eb59f71bd9b5d719
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35050
Reviewed-by: QABUILD
Reviewed-by: Rajagopala VENKATARAVANAPPA X <rajagopala.v@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
This patch forces the charger driver to handle the dedicated usb.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 362955
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: If7da233dd4b914fe95395748e15851002d9c2674
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35351
Reviewed-by: QABUILD
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
A simple rename of the /sys/ab8500_fg/charge_full to
/sys/battery/charge_full to make it usable on more platforms.
ST-Ericsson ID: 358829
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9e2a711fb62876b44a1957ec508b087aaa1ca42c
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34910
Reviewed-by: Peter ENDERBORG <peter.enderborg@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
When a usb notifier is called, update the notified current only if the plugge
in device is a standard host else do not update the current just return.
The notifier call that is called in the usb driver is not only for the
battery driver but other usb instances, hence usb cannot stop calling the
notifier call and do a check to call only if it is a standard host. Hence
this check is done in the battery driver, and if relevant update else just
return.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 362955
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I83026aba60b8a60c9f80e2a699b8eded285f8a09
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34799
Reviewed-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
|
|
This is to prevent the RdNconvAccuReq bit from not being auto cleared.
ST-Ericsson ID: 366966
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I2674790fc425bf1003c30c6ce5f2b88e5fc19b00
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34507
Reviewed-by: Magnus PERSSON <magnus.p.persson@stericsson.com>
|
|
This is to eliminate the risk of charging with a too high current
via USB.
ST-Ericsson ID: 338533
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: N/A
Change-Id: I8ae942c8eb1497812fbb86aa41662562a6a3ec73
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34263
Reviewed-by: QATOOLS
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Add support and enable manual mode battery temperature
monitoring. As gpadc bdata auto trigger is not working
as expected, switch to manual mode.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 367324
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I0f4b619bb5527730ee779838507b09f6b37efb3a
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34364
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Now the battery capacity calculations and the power_supply framework
is updated with the new status when battery has been fully charged
before clients polling the capacity sysfs node are being notified.
ST-Ericsson ID: 358829
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Icd827863bc694e44495487f8536e95ab5fe0714f
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33880
Reviewed-by: QABUILD
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
|
|
In case of standard host, current that can be drawn for charging is to be
notified by the usb driver. Until this notification battery driver can go
ahead charging by consuming 100mA as per the specs.
Change-Id: I2687afa5dca39d0e800011848b38f2822d0bc7e7
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31934
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
samples obtained from the fuel gauge is used to calculate the average current.
Calculation of average current include division by samples, which ends up with
division by zero in case samples is zero. Hence if samples is zero, average
current is not calaulated and previous value is used.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 363829
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I04dd205a7af07cfc7d2ff369fd29cdd1363f6208
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32674
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
A function has been added to enable reinitialisation of the
fuel gauge algorithm. This can be used to to reinitialise with
a different battery voltage at start-up, for verification reasons.
ST-Ericsson ID: 357480
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1ba9775e3c26f49fe746e56c01dce0d5ba8384b3
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31676
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Tested-by: Bibek BASU <bibek.basu@stericsson.com>
|
|
Remove usb_state_changed() exported function. Replace it with otg notifier call.
This makes static_di redundant so it is removed. Moreover, there is no need to
protect usb_state.usb_changed with usb_lock. So usb_lock is removed as well.
Usb state is fabricated based on the reported mA. State is not as accurate as
reading it directly from the usb controller. This should not matter as battery-
manager driver should care more about mA than the state anyway.
Change-Id: I180062a87ca773b5c215aee3ef1c60315d309d42
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31577
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Correct the dependancy for enabling ab5500 battery charging driver.
Change-Id: Ia2f0ba7d2631f19424c01efcf07ea6e088d8b784
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31012
|
|
Due to a bug in AB8500 the input current to the VBUS charger needs to
be lowered when the battery voltage is below 3,7 V. Otherwise there is
a risk that a higher than allowed current is drawn from the USB host.
ST-Ericsson ID: 338533
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I7f32b94411459a1665cc1c2890051f4d5290ed3d
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30630
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30883
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Tested-by: Arun MURTHY <arun.murthy@stericsson.com>
|
|
Check both VBUS_DET_DBNC1 and VBUS_DET_DBNC100 bits when detecting
USB charger.
ST-Ericsson ID: 358849
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Ibca02e5bd89f556fe649eec7f75f105036bcff2f
Signed-off-by: Magnus Persson <magnus.p.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30105
Reviewed-by: Daniel WILLERUD <daniel.willerud@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: QATEST
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30882
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Tested-by: Arun MURTHY <arun.murthy@stericsson.com>
|
|
The safety timer will not be started until the capacity
reported from the FG algorithm is 100%.
Then we know that the amount of charge that's gone into
the battery is enough for the battery to be full.
If it has not reached end-of-charge before the safety timer
has expired then we know that the battery is overcharged
and charging will be stopped to protect the battery.
ST-Ericsson ID: 358130
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: If3cfb49c03235dba09dc35d6b885ff22ea592aa9
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29550
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
Tested-by: Andrew LYNN <andrew.lynn@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30881
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Tested-by: Arun MURTHY <arun.murthy@stericsson.com>
|
|
Change-Id: I11dd2a23323229096b6e0ee2d4dc68cab8919bff
|
|
Change-Id: I97c26a78d52ed5cf65e8d344b55ffce6cf22947e
|
|
In AB5500 there exist no charger watchdog, instead all the charging registers
that are written during enabling charging are to be re-written which acts as a
watchdog re-kick. Even though its usb charging DCIOCURRENT register has to be
written in order to kick charging, else charging is not started.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP257120
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iad283349e21027908df8aec560c9f44f2861f0ee
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27220
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Measure Ibat and remove the resulting voltage between Vbat- and Gnd from
Vntc readings.
ST-Ericsson ID: 350661
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I232b9fc7da3ea69e2062feda98776ded33d6253b
Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27869
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
|
|
Move 'instant' current measurement, which is actually averaged over
250ms, to its own workqueue. Provide interfaces for blocking and
non-blocking clients.
ST-Ericsson ID: 350661
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Id7daddbc4dcea4562bd76a986b4efa769c5a03c6
Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27868
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
|
|
During boot if the battery voltage exceed the max voltage, then an interrupt
is triggered to the GPADC for auto control. This in turn will call the fg
registered callback handler. But this happens before the power supply class
of fg is registered. Thereby calling power_supply_changed() will lead to BUG
since it used the wake lock which has not yet been initializes.
Hence register power supply class for fg first followed by initializing the
hardware registers, which includes registering for a gpadc auto convert for
battery voltage.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 355236
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iaa291c5ebbd8c2ba3fcee579de3605805a306ebd
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28777
Reviewed-by: QATEST
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
add support for battery temperature monitor
ST-Ericsson Linux next: NA
ST-Ericsson ID: WP257616
ST-Ericsson FOSS-OUT ID: NA
Change-Id: I344947ed41b4dd0a49abcb28e57b7b3c697dc57d
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28233
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson ID: CR339643
ST-Ericsson Linux next: ER282986
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ib6ad58e7a702fe976a1d66fef0ce9d1782a1f8d2
Signed-off-by: Huan DUAN <huan.duan@stericsson.com>
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25108
Reviewed-by: QATEST
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Battery temperature is now measured even when no charger is connected.
ST-Ericsson ID: 342846
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ia861437635bcdcdc32b259aff05d889b449ee682
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26608
Reviewed-by: QATEST
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
|
|
usb type can be detected based on the usb line status register. USB line
status register gets updated on receiving usb line status interrupt.
This usb line status interrupt is obtained after doing a chip select in
usb rising edge interrupt handler and this is done by the usb driver.
Now on getting usb rising edge interrupt, if the usb line status register
is read, it ends up with unknown device connected.
USB line status register must be read only after getting the usb line
status interrupt, else will not be updated.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: ER350732
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ibca3a8e8032e23fb2b52ac45f9172269f868ae42
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26709
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
When usb is removed, since there are no status registers, verify the same
by reading the interrupt source register and send an uevent.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: ER351099
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ife573551319e91e3651c19e40601bb850c186a14
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26703
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Battery capacity is updated at boot time and thereafter not
updated. Battery capacity is based on the lookup table provided
by the battery vendors.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: ER349552
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9cb7b01bccf2dc76e5d68c374fbb1d95120baa06
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25933
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
After getting usb rising edge interrupt, usb chip select should be enabled
in order to get the usb line status interrupt.
This sequence is done in the usb driver, in battery driver, usb charger detect
was enabled. This was conflicting with the sequence followed in the usb driver
and hence usb line status interrupt was not triggered.
Hence reverted the usb detection enable in battery driver.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: ER349171
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iaa055cdbe59699fe0442489586fd5c7e21c1ed5b
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25822
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
..linux-linaro-3.0-2011.07-1_glk3.0
Conflicts:
arch/arm/common/Makefile
drivers/misc/Kconfig
drivers/misc/Makefile
kernel/printk.c
Change-Id: I126f34edb1879981909072beefb2738cad26f951
|
|
Since the battery is unknown, do not measure the battery temp
it might provide some value maybe too high or low leading
to system reboot
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP332221
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I70b4cc959bfd2792a25379cc17a25dada4b1c051
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25661
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
Enable compilation of ab5500 energy management driver. It depends on ab5500
mfd and ab5500 gpadc driver.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP256401
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I072f6bfc643897d3a43ad478f05d78ef2fdbffd8
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23154
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Temperature monitoring driver for ab5500. Since temperature is the most
important aspect of a battery, this driver monitors the battery temperature
and takes precautionary measurements even in case of hardware failure.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP332221
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Idd0a4a7f220ffa9693516757aba395ab7f75cfc2
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23152
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This is a low level ab5500 fuel gauge driver. A power supply class of
type fg is registered to display the battery parameters such as energy,
charge, capacity, voltage.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP332221
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ibe508dd84836a9a4873539ce194b50788ea25cba
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23151
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
A generic charging algorithm for all abx500 varants. It is a high
level algorithm and hence doesn't include any low level or hardware
interaction. Each of the abx500 charging drivers will implement low
level hardware interaction function and provide inputs to this
generic charging algorithm to monitor and implement the charging
functionality.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP256401
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I8634160b2e67132ae68a09fda7a9fd9d36dd23d2
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23150
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Adds a power supply class for usb, used to charge the battery.
It includes enabling/disabling of usb charging and monitoring
the usb.
ST-Ericsson Linux next: Not Tested
ST-Ericsson ID: WP256401
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I4fa42b3dbe82103ad49293b784243dc0edb61558
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23149
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson Linux Next: -
ST-Ericsson ID: ER334609
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ia914fa6c65d9c4a5ecbc55237882590772c8b44d
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25439
Reviewed-by: QATEST
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
In order for a userspace application to save the maximum capacity
in persistant storage, this driver needs to expose this parameter
in sysfs. This patch enables that functionality
ST-Ericsson Linux Next: -
ST-Ericsson ID: ER334609
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9dd5e9c1faeb6d41da051417999ebdf53a2eaa72
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24951
Reviewed-by: QATEST
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The pointer to the charger from the ab8500 struct is no longer
needed.
ST-Ericsson ID: 256401
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Change-Id: Iec4d4fb69c54366f96283ab1e676a874637550f0
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24710
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QATEST
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Debug prove locking warns about inconsistent lock state, this patch fixes that warning
ST-Ericsson Linux next: Not tested
ST-Ericsson ID: ER329423
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I8ebc082ea590f512ad71b197c88a6e6bb80e92bf
Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23366
Reviewed-by: QATEST
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
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>
|
|
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>
Conflicts:
arch/arm/mach-ux500/board-mop500-regulators.c
|
|
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>
|
|
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>
|
|
Remove usb_state_changed() exported function. Replace it with otg notifier call.
This makes static_di redundant so it is removed. Moreover, there is no need to
protect usb_state.usb_changed with usb_lock. So usb_lock is removed as well.
Usb state is fabricated based on the reported mA. State is not as accurate as
reading it directly from the usb controller. This should not matter as battery-
manager driver should care more about mA than the state anyway.
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|