summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-05-22sensor: board: Add U8520 & U9540 machine supportst-mems-sensorsPhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22l3g4200d: change L3G4200D_FS_BIT valueNaga Radhesh
In CTRL_R4, bit 5 and bit 6 are used to set fullscale value.so L3G4200D_FS_BIT should be 4. ST-Ericsson ID: 413619 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Change-Id: Idf7c00d5eaaeb1eda53b9ef311080b1d5d4c228b Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49760 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Robert LIND <robert.lind@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22hwmon: l3g4200,lsm303x: fix up the error handlingsrinidhi kasagar
handle the errors properly. ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: N/A Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com> Change-Id: I74d3f2e159bba9847fc4aab6287d23d38fb722e8 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45272 Reviewed-by: QATOOLS Reviewed-by: Naga RADHESH Y <naga.radheshy@stericsson.com> Reviewed-by: QABUILD
2012-05-22input:lps001wp_prs: Correct sysfs file permissionsBenn Pörscke
2012-05-22Android:lps001wp: add early suspend,late resumeNaga RADHESH Y
add early suspend,late resume functionlity for pressure sensor. ST-Ericsson ID: 371766 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:If517adc3bbef3d203a9be2af946c3264cb35b265 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
2012-05-22lsm303dlh: add support for Android early suspendPhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22mach-ux500: Fix, update Chipid by reading 0x0F registerPhilippe Langlais
Fix update ChipId by reading 0x0F register,this chipid is used in magnetometer driver to differentiate b/w lsm303dlh and lsm303dlhc device. Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22lsm303dlhc: Include <linux/module.h>Philippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22mach-ux500: sensors: move U8500 UIBs sensors management into ↵Philippe Langlais
board-mop500-sensors.c Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22lps001wp_prs:free prs struct after regulator freeNaga Radhesh
free the prs structure after freeing regulator ST-Ericsson ID: 401383 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Iba5a833e427a83ad3e7201499f13e120545a307d Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43851 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-05-22Documentation:add kernel-doc for pressure sensorNaga Radhesh
add kernel-docs for the pressure sensor. ST-Ericsson ID: 371766 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I1977bdbc13dde20ca14f50e70f0f4746367a172b Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42897 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22mach-ux500: sensors: Change platform data for pressure sensorPhilippe Langlais
Set driver name to lps001wp_prs & poll interval to 1 sec Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22[ANDROID]:input:lps001wp_prs:add regulator,sysfsNaga Radhesh
add regulator,sysfs paths and add error handling in all error cases. ST-Ericsson ID: 371766 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I9efe9ab97b1a7d051d26e7a803aa7cecccc4d6f4 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/41011 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22lps001wp_prs:add compilation switch for work queueNaga Radhesh
add compilation switch for work queue,input subsystem. ST-Ericsson ID: 371766 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I0cb3ea3e4f9ea64de427a2b0784032a4eab55580 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/40402 Reviewed-by: QABUILD Reviewed-by: Anil KUMAR (STE) <anil.kumar@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22drivers: Change sysfs attributes permissionNaga Radhesh
change write permissions for syfs attributes to user only, give only read permissions for group and others. ST-Ericsson ID: 361755 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I25a49f191b29386fffb34b4a39695125811bfb42 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/41791 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22mach-ux500: lsm303dh: Read the chip_id of LSM303Philippe Langlais
Check which accelerometer chip is mounted and read the chip ID to detect whether chip is LSM303DHL/LSM303DHLC. Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22lsm303dlh_m: Check for DLHC device to invert y,zNaga Radhesh
Invert y,z co-ordinates as specified in data sheet if device is LSM303DLHC ST-Ericsson ID: 374970 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I45e706e3f783dd58e02f23d9579f3422ef7fc984 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36886 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22Documentation:add kernel-doc for sensorPhilippe Langlais
Add kernel docs for sensors Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
2012-05-22hwmon: add mutex unlock in error casesNaga Radhesh
In some error cases mutexunlock is missed, so add mutex unlock in error cases. ST-Ericsson ID: 371373 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Change-Id: If3648c5d3e8dad623c7b87fa77bef1f28ba2a056 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39253 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22drivers: hwmon: l3g4200d: Provide gyroscope temperature via sysfsAnil Kumar
Add sysfs interface to read gyroscope temperature ST-Ericsson ID: 371726 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I8fe2fa836c92f927cb70742a06a8b87b0beaec2f Signed-off-by: Anil Kumar <anil.kumar@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36832 Reviewed-by: QABUILD Reviewed-by: Naga RADHESH Y <naga.radheshy@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22hwmon:(lsm303dlh)enable X, Y and Z axis by defaultNaga Radhesh
Enable x,y and z axis bits of accelerometer, to read data from x,y and z axis. ST-Ericsson ID: 369951 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Ie8cdf30c210cd90520914b051c342050a80bf350 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35929 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22hwmon: lsm303dlhc_a: use regulator_set_optimum_mode()Rabin Vincent
ST-Ericsson ID: 366715 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3fd6e8025e658110505e77c724f6bf9b00f6ce9c Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35539 Reviewed-by: Naga RADHESH Y <naga.radheshy@stericsson.com> Reviewed-by: QABUILD
2012-05-22hwmon: lsm303dlh: use regulator_set_optimum_mode()Rabin Vincent
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>
2012-05-22mach-ux500: sensors: Add __init directive for mop500_sensors_init()Philippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22sensors: Include module.h after 3.2 updatePhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22ux500: Detect accelerometer i2c address on snowball in board sensors fileRobert Marklund
Snowball V7 and above the accelerometer changed i2c address and there is now way to detect that in runtime. So between V7 and V10 we need to probe for the right address. Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22input/misc: Add regulator support to lps001wpRobert Marklund
Change-Id: I39f57da20017ff7e963d0001a99dd426e12c77d0 Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35833 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22drivers/misc: compile lps001wp using a Kconfig entryAlessandro Rubini
The value is "default y" for the MACH_U8500 family. Note that this is not ready for upstream because I have no dependencies in place for the entry. "make randomconfig" will find it sooner or later. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: If490d78630a3388e0c7ffa97f2c8e5faf92e373f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24797 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Robert MARKLUND <robert.marklund@stericsson.com>
2012-05-22input/misc: fix lps001wp_prs.c so it will compile (next commit)Alessandro Rubini
This fixes some undefined SHORT_MAX and so on. I use explicit hex because it is not short, it's exactly 16 bits. Moreover, it adds some needed headers and removes some unused ones. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: I1029884822ba869fc14c34793a50f61e5f4889b2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24796 Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22input/misc: added lps001wp as internally delivered by STAlessandro Rubini
This is the driver that I got from Matteo Dameno and Carmine Iascone, it doesn't currently compile for some missing symbols but I'd better first commit what I got and then make my own changes over it. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: I1dada398da9fe30d5e1f29c9785707c8a84c7a6c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24784 Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22ux500: Separate sensors and stuibRobert Marklund
Separate sensors and stuib so we can start one without the other. Snowball want sensors but dont have any uib. Change-Id: I96fd1051c0a85c5e8eccd83b08076b7348d4fc17 Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35357 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22hwmon: change regulator for accelerometerNaga Radhesh
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
2012-05-22lsm303dlhc: Correct out register readingChethan Krishna N
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>
2012-05-22lsm303dlhc: fix !CONFIG_HAS_EARLYSUSPEND buildRabin Vincent
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>
2012-05-22lsm303dlh: Detect chip version at run timeChethan Krishna N
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>
2012-05-22lsm303dlhc: add early suspend supportChethan Krishna N
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>
2012-05-22drivers:hwmon: add support for lsm303dlhc sensorChethan Krishna N
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>
2012-05-22lsm303dlh: adding functions under CONFIG_SENSORS_INPUT_DEVICEChethan Krishna N
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>
2012-05-22hwmon: l3g4200d: Fix ifdefsJonas Aaberg
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
2012-05-22hwmon: lsm303dlh_a: Fix ifdefsJonas Aaberg
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
2012-05-22hwmon: lsm303dlh_m: Fix ifdefsJonas Aaberg
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
2012-05-22lsm303dlh: add DocBook documentationPhilippe Langlais
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> Conflicts: Documentation/DocBook/Makefile
2012-05-22lsm303dlh/l3g4200d: return count after storing modeChethan Krishna N
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>
2012-05-22lsm303dlh: Check written values for lsm303dlh_a_write callsChethan Krishna N
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>
2012-05-22lsm303dlh: Reboot memory content after suspend/resumeChethan Krishna N
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>
2012-05-22hwmon: add st lsm303dlh driverPhilippe Langlais
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22hwmon: change L3G4200D regulators name for 2.6.38Philippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22Adding l3g4200d GyroscopeTony Månsson
2012-05-20Linux 3.4v3.4Linus Torvalds
2012-05-19Merge tag 'parisc-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 Pull PA-RISC fixes from James Bottomley: "This is a set of three bug fixes that gets parisc running again on systems with PA1.1 processors. Two fix regressions introduced in 2.6.39 and one fixes a prefetch bug that only affects PA7300LC processors. We also have another pending fix to do with the sectional arrangement of vmlinux.lds, but there's a query on it during testing on one particular system type, so I'll hold off sending it in for now." * tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6: [PARISC] fix panic on prefetch(NULL) on PA7300LC [PARISC] fix crash in flush_icache_page_asm on PA1.1 [PARISC] fix PA1.1 oops on boot