diff options
author | Samu Onkalo <samu.p.onkalo@nokia.com> | 2010-10-22 07:57:27 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-10-25 14:11:38 -0700 |
commit | 2a7fade7e03a7c773f91e2e5ff26ad6fafda5a9f (patch) | |
tree | 160964eaad5bfaa0f4a02be0709fd49d529d84d5 /drivers/hwmon/lis3lv02d.h | |
parent | 821f664644c2da9e1a51e36751abedf49d4332e0 (diff) | |
download | op-kernel-dev-2a7fade7e03a7c773f91e2e5ff26ad6fafda5a9f.zip op-kernel-dev-2a7fade7e03a7c773f91e2e5ff26ad6fafda5a9f.tar.gz |
hwmon: lis3: Power on corrections
Sometimes lis3 chip seems to fail to setup factory tuning at boot up.
This probably happens if there is some odd power ramp down ramp up sequence
for example in device restart. Set boot bit in control2 register to
trig boot sequence manually and wait until it is finished.
Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/lis3lv02d.h')
-rw-r--r-- | drivers/hwmon/lis3lv02d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h index e54a167..77ebb15 100644 --- a/drivers/hwmon/lis3lv02d.h +++ b/drivers/hwmon/lis3lv02d.h @@ -150,6 +150,7 @@ enum lis3lv02d_ctrl4_3dc { enum lis302d_ctrl2 { HP_FF_WU2 = 0x08, HP_FF_WU1 = 0x04, + CTRL2_BOOT_8B = 0x40, }; enum lis3lv02d_ctrl3 { |