Age | Commit message (Collapse) | Author |
|
Change-Id: I2fcf46d1fc4b0cd4c61e5be3654c43b80db86015
|
|
Inform the regulator framework about the current consumption,
to be used with DRMS. Note that the current consumption in
sleep modes is much lower, but we do not inform the regulator
framework about those for now.
ST-Ericsson ID: 366715
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I52b9162eead0091595b731e34ebca3bfc4d3d9be
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34436
Reviewed-by: QATOOLS
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: Naga RADHESH Y <naga.radheshy@stericsson.com>
|
|
PRCMU has been moved, so fix Kconfig and header include path
ST-Ericsson ID: 364370
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I052cf03afa4481e1267c07acf2d16401fac6abc2
Signed-off-by: Chris Kimber <chris.kimber@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33124
Reviewed-by: QABUILD
Reviewed-by: Duncan PATERSON <duncan.paterson@stericsson.com>
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
|
|
When a value other than 0 is written to either the _min or _max
attributes, automatically start the PRCMU monitoring.
Also at driver init start monitoring the critical temperature
to prevent overheating.
ST-Ericsson ID: 364370
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I8fefbf30eeb07d6caf4ee73af487b948fbd2fe7e
Signed-off-by: Chris Kimber <chris.kimber@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32404
Reviewed-by: QABUILD
Reviewed-by: Duncan PATERSON <duncan.paterson@stericsson.com>
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
|
|
Setting the critical alarm causes the PRCMU to shutdown the platform,
the _max alarm is used by the platform thermal service to try and
take actions to prevent the critical shutdown occuring.
ST-Ericsson ID: 364370
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I04671800872aba8318f461fb5a710a72aea4280a
Signed-off-by: Chris Kimber <chris.kimber@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32400
Reviewed-by: Duncan PATERSON <duncan.paterson@stericsson.com>
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
|
|
add support for ab5500 die temperature monitoring
as hardware supports reading input temperature
ST-Ericsson Linux next: NA
ST-Ericsson ID: 339643
ST-Ericsson FOSS-OUT ID: NA
Change-Id: I26db88645c4e627829211366bdc1df22ad8ac067
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31981
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
To determine whether the system had a thermal power off or a regular software
power off upon the next boot, the system must utilize the thermal power off
bit, ThDB8500SWoff, in AB8500 register STw4500Ctrl1.
ST-Ericsson ID: 354533
ST-Ericsson Linux next: N/A
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I07440dcdc39a86cb72aa95d86411a1f020b05cae
Signed-off-by: Daniel Willerud <daniel.willerud@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28515
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ST-Ericsson ID: 354533
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I068a3c801405b6f7ca2b78df7cd9f7461ed8738b
Signed-off-by: Daniel Willerud <daniel.willerud@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29502
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
change regulator supply from v-accel to vdd
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: Not tested
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
Change-Id: I16c1f6b3225939cb8c43513487c4a69cb879511d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29730
|
|
Patch includes following commits
u5500: prcmu: add irqs for db5500 temperature sensor
dbx500: hwmon: temperature monitor support for DB5500
ST-Ericsson ID: 352334
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Change-Id: I4df816759c0f8d039b88788e35372c05990c11ce
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29681
|
|
Out register reading method for lsm303dlhc sensor
chip is corrected
ST-Ericsson ID: 356390
ST-Ericsson FOSS-OUT ID: NA
ST-Ericsson Linux next: NA
Change-Id: Ia1805ad094886a8d23a29148a9d0e3ba460a06f7
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28688
Reviewed-by: QATEST
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
|
ST-Ericsson ID: 317051
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I605e284d9702c48b0bcca2d0781c1ff0ce0d3c55
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28418
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@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>
|
|
Includes support for xtal temp, pcb temp and die temp
monitoring
ST-Ericsson Linux next: NA
ST-Ericsson ID: WP257616 & WP351655
ST-Ericsson FOSS-OUT ID: NA
Change-Id: I7668fb36df957b66929bfd13a4b6ad0386036aa1
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28139
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Generalize ab8500 hwmon driver to support other abx500
variants. Source code is split into generic and variant
specific files.
ST-Ericsson Linux next: NA
ST-Ericsson ID: WP257616
ST-Ericsson FOSS-OUT ID: NA
Change-Id: Ia39feaac455160149d49a5982374da3729ea5301
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28138
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Enable both drivers and detect which probe has to be called
based on hardware detected at run time.
Change-Id: I7020b63c4345a23404cf06418aebaa876c504c1e
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27883
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>
|
|
Adding early suspend and late resume support for
lsm303dlhc sensor devices.
ST-Ericsson ID: 317051
ST-Ericsson FOSS-OUT ID: NA
ST-Ericsson Linux next: NA
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Change-Id: I839bb5bdbd0cb8d5e73a9c8ed3af3df722ac4c99
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27117
Reviewed-by: QATOOLS
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Adding support for lsm303dlhc acclerometer and
magnetometer sensor chip.
ST-Ericsson ID: 317051
ST-Ericsson FOSS-OUT ID: NA
ST-Ericsson Linux next: NA
Change-Id: If55ac20c2665b44d3af45d7af0f2e3e16570d8a7
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26993
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
When setting a min/max/max_hyst alarm value for a sensor, it is no
longer neccessary to manually kick of a monitoring job.
ST-Ericsson Linux next: -
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I24f8f81481f3ff96b54c197ffcbe60f2e50a0d7c
Signed-off-by: Chris Kimber <chris.kimber@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24714
Reviewed-by: QATEST
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
Support for monitoring BatCtrl in AB8500 has been added
ST-Ericsson Linux next: ER282986
ST-Ericsson ID: CR339643
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I71cfa8b8ecaeae9291d910bc1928ad0e36834709
Signed-off-by: Huan DUAN <huan.duan@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23986
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Functions that are called only when CONFIG_SENSORS_INPUT_DEVICE is
enabled are put under the same switch
Change-Id: If652e8ab2ca0d3482d24145bb5d908f5dbacf965
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23882
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This patch updates the PRCMU driver API to be the same
(as far as possible) in U8500 and U4500.
- <mach/prcmu-fw-api.h> has been renamed <mach/prcmu.h>.
- The platform specific APIs have moved to <mach/prcmu-db5500.h>
and <mach/prcmu-db8500.h> (but these should not be directly
included).
- The PRCMU QoS API has been put in <mach/prcmu-qos.h>.
ST Ericsson ID: 334772
ST Ericsson FOSS-OUT ID: trivial
ST Ericsson Linux next: 318371
Change-Id: I6ce117ec35ebf2e987178ccacce09afb554d2736
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23863
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie228d5ac6533ff74d103a79ef379137428e92652
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23696
|
|
ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ia2cdb2cde8f0baffe5b8f5847754780068153d9e
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23697
|
|
ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I085ff9f7e54491b6dde56c956dada8ebd6c7d8a1
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23698
|
|
Adding DocBook documentation for lsm303dlh accelerometer
and magnetometer drivers.
ST-Ericsson ID: 277198
Change-Id: Idfca43aa6ffaa39b7f73d0135dc6d2b01a0a44c6
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23784
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
corrects behavior while returning from store mode
function calls.
ST Ericsson ID : AP335036
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Change-Id: Ifa9a99eb713a51e1fc5b53eaacefacbf1db26d90
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20697
Reviewed-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Tested-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Check written values for all calls of lsm303dlh_a_write function calls.
ST Ericsson ID: ER328752
Change-Id: I88d1bc5d92cebb7c3483b3ba3073d155336c4909
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18317
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson ID: CR267428
Change-Id: I848d0a779eb4a3d3719a8d6e5f5448dc122331e0
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17929
Reviewed-by: Wenhai FANG <wenhai.h.fang@stericsson.com>
Tested-by: Wenhai FANG <wenhai.h.fang@stericsson.com>
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
It is observed that device screen orientation doesn't behave
as expected sometimes after suspend/resume. Rebooting the device's
internal registers to ensure good device behavior.
ST Ericsson ID : ER327596
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Change-Id: I6bdecf0959a3497b00d57d907d5a7a7d67b12c32
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17814
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
|
|
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
spi_sync call uses its spi_message parameter to keep completion information,
using a drvdata structure is not thread-safe. Use a mutex to prevent
multiple access to shared driver data.
Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Cyril Hrubis <metan@ucw.cz>
Tested-by: Stanislav Brabec <utx@penguin.cz>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
|
|
A copy-and-paste error caused it87_attributes_vid to be referenced
where it87_attributes_label should be. Thankfully the group is only
used for attribute removal, not attribute creation, so the effects of
this bug are limited, but let's fix it still.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
|
|
The object returned by atk_gitm is dynamically allocated and must be
freed.
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
|
|
Coefficients to convert chip register values to voltage/current have been
slightly changed in revision B of the chip datasheet. Update driver coefficients
to match the coefficients in the datasheet.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
|
|
Using integer variable types for register to data conversions can cause
overflows especially for power calculations, which are in microwatt.
Use long variables instead.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.39+
|
|
It is possible that a PMBus device supports the READ_TEMPERATURE2 and/or
READ_TEMPERATURE3 registers but does not support READ_TEMPERATURE1.
Improve temperature status register detection to address this condition.
Reported-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.39+
|
|
Negative temperatures were returned in degrees C instead of milli-Degrees C.
Also, negative temperatures were reported for remote temperature sensors even
if the chip was configured for positive-only results.
Fix by detecting temperature modes, and by treating negative temperatures
similar to positive temperatures, with appropriate sign extension.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.30+
|
|
The LM95241 driver accepts every chip ID equal to or larger than 0xA4 as its
own, and other chips such as LM95245 use chip IDs in the accepted ID range.
This results in false chip detection.
Fix problem by accepting only the known LM95241 chip ID.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.30+
|
|
git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging
* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
hwmon: (k10temp) Update documentation for Fam12h
hwmon-vid: Fix typo in VIA CPU name
hwmon: (f71882fg) Add support for the F71869A
hwmon: Use <> rather than () around my e-mail address
hwmon: (emc6w201) Properly handle all errors
|
|
It's Nehemiah, not Nemiah.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
|
|
The F71869A is almost the same as the F71869F/E, except that it has
the normal number of temp and pwm zones for a F71882FG derived chip,
rather then the limited number of the F71869F/E.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Max Baldwin <archerseven@gmail.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
|
|
Handle errors on 8-bit register reads and writes too. Also use likely
and unlikely to make the functions faster on success.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
|