- 07 3月, 2013 40 次提交
-
-
由 Rupesh Kumar 提交于
The LED Indicator feature allows indicating through a led when the PM2301 battery charging is active. SW shall not disable this LED. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 lme00437 提交于
This patch restricts use of LPN pin to C2C boards to avoid conflict on HSI for GPIO 60 use. Signed-off-by: NBenoit GAUTHIER <benoit.gauthier-xsig@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMustapha BEN-ZOUBEIR <mustapha.ben.zoubeir-xsig@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: NBenoit GAUTHIER <benoit.gauthier-xsig@stericsson.com>
-
由 Lee Jones 提交于
Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 srinidhi kasagar 提交于
deprecate some boilerplate code by using module_platform_driver helper macro. No functional changes. Signed-off-by: Nsrinidhi kasagar <srinidhi.kasagar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Rupesh Kumar 提交于
Some of the headers and defines accrued over time are no longer in use. Let's take the opportunity to remove a few of them. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Rabin Vincent 提交于
Only AB8500 has this hardware bug, so these works only need to be run there. Signed-off-by: NRabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NMartin SJOBLOM <martin.w.sjoblom@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
To optimize the current consumption we use pm_runtime autosuspend functions which execute the pm_runtime_suspend after a delay of inactivity on the other hand we use pm_runtime_resume every time we receive an interruption to wake up the pm2301. Signed-off-by: NM BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 M BenZoubeir 提交于
Signed-off-by: NM BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Marcus Cooper 提交于
When the state of USB Charge detection is changed then the calls use a define for another register in other bank. This change creates a new define for the correct register and removes the magic numbers that are present. Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NHakan BERG <hakan.berg@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
Timers used for charging safety and maintenance must work even when CPU power has collapsed. By using hrtimers with the realtime clock the system is able to trigger an alarm that wakes-up the CPU and makes it possible to handle events. Allow a little slack time of 5 minutes for the hrtimers to allow CPU to be woken-up in a more optimal power saving way. A 5 minute delay to time-out timers relative to hours does not impact on safety. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Charging watchdog kicker work-thread gets started twice causing 'failed to kick watchdog' message after removing charger and when re-inserting charger. This patch removes the superfluous start of watchdog kicker-thread. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Marcus Cooper 提交于
The newer AB's such as the AB8505, AB9540 etc include a USBLink1 Status register which detects a larger range of external devices. This should be used instead of the USBLine Status register. Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NHakan BERG <hakan.berg@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NYang QU <yang.qu@stericsson.com>
-
由 Lee Jones 提交于
Provide AB8540 platform specific information required to run the Battery Management subsystem on AB8540 based devices. For this to happen we see the introduction of separate platform specific data structures and a means in which to process them. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Rupesh Kumar 提交于
Due to btemp filtering enabled during init, temp values reported to charge algorithm driver started from 0. As a result,charge algorithm was going into wrong state and charging was stopped. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NMartin SJOBLOM <martin.w.sjoblom@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Lee Jones 提交于
AB8540 supports power path function in USB charging mode for fast power up with dead and weak battery, and it could extend the battery age. When USB charging starts, if the Vbattrue is below than SW cut off voltage, power path and pre-charge should be enabled. If Vbattrue is higher than SW cut off voltage, power path and pre-charge should be disabled. This is to make sure full current to battery charge. At the end of charge, power path should be enable again to reduce charging the battery again. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Marcus Cooper 提交于
The PM2301 Charger should always be available when using the AB8500 Battery Management system, we're ensuring this will be the case. Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NHakan BERG <hakan.berg@stericsson.com> Reviewed-by: NMian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com>
-
由 Hakan Berg 提交于
The AB8505 does not have the same address for USB link-status as has ab8500. Add AB8505_USB_LINK_STATUS and code to switch to correct constant. Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com>
-
由 Hakan Berg 提交于
When battery capacity was going below 1% fg is not supposed to report 0% unless we've got the LOW_BAT IRQ, no matter what the FG-algorithm says. This made fg get stuck at 1% if charger is connected when capacity is 1%. Signed-off-by: NHakan BERG <hakan.berg@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-
由 Hakan Berg 提交于
Battery tempreature readings sometimes fail and results in a value far from recent values. This patch adds a software filter that disposes such readings, by allowing direct updates on temperature only if two samples result in the same temperature. Else only allow 1 degree change from previous reported value in the direction of the new measurement. Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NMartin SJOBLOM <martin.w.sjoblom@stericsson.com> Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com>
-
由 Rupesh Kumar 提交于
When in suspend state, upon plug-in of external AC charger the device needs to wake-up and charging operation started. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Rupesh Kumar 提交于
This patch adds support for die temperature thermal protection in pm2301 driver. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NHakan BERG <hakan.berg@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Lee Jones 提交于
Do not set higher current in stepping functionality if VBUS is dropping. After VBUS has dropped try to set current once again. If dropping again then we have found the maximum capability of the charger. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Mustapha Ben Zoubeir 提交于
Signed-off-by: NMustapha Ben Zoubeir <mustapha.ben.zoubeir-nonst@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: NOlivier CLERGEAUD <olivier.clergeaud@stericsson.com>
-
由 Per Forlin 提交于
Force main charger detect in turn on status. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NPer Forlin <per.forlin@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
-
由 Lee Jones 提交于
Fix for charging not getting enabled in charge only mode by external charger. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Rupesh Kumar 提交于
Added support for main charger over voltage protection. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@stericsson.com>
-
由 Lee Jones 提交于
Due to a bug in some AB8500 ASICs charger removal cannot always be detected if the removal and reinsertion is done to close in time. This patch detects above described case and handles the situation so that charging will be kept turned on. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Enforce the white space character after 'if'. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Yang QU 提交于
Add 2.7v, 2.9v, 3.0v, 3.2v and 3.3v charging voltages for backup battery. Before that only 2.5v, 2.6v, 2.8v, 3.1v were available. Signed-off-by: NYang QU <yang.qu@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMaxime COQUELIN <maxime.coquelin@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Tested-by: NXiao Mei ZHANG <xiaomei.zhang@stericsson.com>
-
由 Martin Bergstrom 提交于
Unscaled capacity should be reported for POWER_SUPPLY_PROP_CAPACITY. Signed-off-by: NMartin Bergstrom <martin.bergstrom@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
Add support for a power cut feature which allows user to configure when ab8505 and ab8540 based platforms should shut down system due to low battery. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Any platform can be dynamically probed for model and version number provided the AB8500 MFD parent device pointer is available. This patch obtains that pointer and stores it in a locally controlled struct for later use. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Rajkumar Kasirajan 提交于
End of charging is managed by SW. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Just lots of white space corrections, changing some of the 4 space tabs to 8 and pulling back some of the double tabbing back into singles, such as the remaining of the driver. Signed-off-by: NLee Jones <lee.jones@linaro.org> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-
由 Dariusz Szymczak 提交于
Make use of the hierarchical interrupt rergister called ITLatchHier1 - 3 also for the 8500 platform (currently the hierarchical interrupt registers are used only for the 8540 and 9540 platforms). This will make the interrupt routing go faster since fewer i2c reads need to made in the most common cases. Signed-off-by: NDariusz Szymczak <dariusz.xd.szymczak@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-
由 srinidhi kasagar 提交于
Use kstrtoul_from_user for getting an unsigned long from userspace which is less error prone. Signed-off-by: Nsrinidhi kasagar <srinidhi.kasagar@stericsson.com> Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-
由 Linus Walleij 提交于
As I am working on SPARSE_IRQ a number of implicit resource grabs in the kernel become evident. For example, some includes like <linux/irqs.h> would implicitly include <mach/irqs.h> and then from there <mach/db8500-regs.h>. In many cases it is masking the fact that drivers do not properly use resources to pass their dependencies, base addresses etc. So write explicit #include statements with TODO items to have this fixed the proper way to all drivers doing this. Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-
由 Ulf Hansson 提交于
Hierarchically, the abx500-clk shall be considered as a child of the ab8500 core. The abx500-clk is intiated at arch init and thus the clks will be available when clients needs them. Signed-off-by: NUlf Hansson <ulf.hansson@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com> Reviewed-by: NPatrice CHOTARD <patrice.chotard@stericsson.com> Reviewed-by: NGabriel FERNANDEZ <gabriel.fernandez@stericsson.com> Reviewed-by: NPhilippe BEGNIC <philippe.begnic@stericsson.com> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-
由 Lee Jones 提交于
Required to read out correct debug information from the AB chip. Signed-off-by: NLee Jones <lee.jones@linaro.org> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
-