diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-09-23 13:01:39 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-10-25 17:11:20 -0400 |
commit | 78537c3b6ffcb69bf4fd43a74ba57928fcefce95 (patch) | |
tree | 3e30c553acb84389c075c7f94bdd369c4efc2b41 /drivers/hwmon/lis3lv02d.h | |
parent | 9401ba13281f9cf36c85d4f8d3a52f9655e69b58 (diff) |
hwmon: (lis3) Add support for new LIS3DC / HP3DC chip
A new version of LIS3 chip has slight incompatibilities from former
versions. This patch adds the minimal support for it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/lis3lv02d.h')
-rw-r--r-- | drivers/hwmon/lis3lv02d.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h index 854091380e33..62c6652eb9d5 100644 --- a/drivers/hwmon/lis3lv02d.h +++ b/drivers/hwmon/lis3lv02d.h | |||
@@ -45,6 +45,7 @@ enum lis3_reg { | |||
45 | CTRL_REG1 = 0x20, | 45 | CTRL_REG1 = 0x20, |
46 | CTRL_REG2 = 0x21, | 46 | CTRL_REG2 = 0x21, |
47 | CTRL_REG3 = 0x22, | 47 | CTRL_REG3 = 0x22, |
48 | CTRL_REG4 = 0x23, | ||
48 | HP_FILTER_RESET = 0x23, | 49 | HP_FILTER_RESET = 0x23, |
49 | STATUS_REG = 0x27, | 50 | STATUS_REG = 0x27, |
50 | OUTX_L = 0x28, | 51 | OUTX_L = 0x28, |
@@ -93,6 +94,7 @@ enum lis3lv02d_reg { | |||
93 | }; | 94 | }; |
94 | 95 | ||
95 | enum lis3_who_am_i { | 96 | enum lis3_who_am_i { |
97 | WAI_3DC = 0x33, /* 8 bits: LIS3DC, HP3DC */ | ||
96 | WAI_12B = 0x3A, /* 12 bits: LIS3LV02D[LQ]... */ | 98 | WAI_12B = 0x3A, /* 12 bits: LIS3LV02D[LQ]... */ |
97 | WAI_8B = 0x3B, /* 8 bits: LIS[23]02D[LQ]... */ | 99 | WAI_8B = 0x3B, /* 8 bits: LIS[23]02D[LQ]... */ |
98 | WAI_6B = 0x52, /* 6 bits: LIS331DLF - not supported */ | 100 | WAI_6B = 0x52, /* 6 bits: LIS331DLF - not supported */ |
@@ -118,6 +120,13 @@ enum lis3lv02d_ctrl1_8b { | |||
118 | CTRL1_DR = 0x80, | 120 | CTRL1_DR = 0x80, |
119 | }; | 121 | }; |
120 | 122 | ||
123 | enum lis3lv02d_ctrl1_3dc { | ||
124 | CTRL1_ODR0 = 0x10, | ||
125 | CTRL1_ODR1 = 0x20, | ||
126 | CTRL1_ODR2 = 0x40, | ||
127 | CTRL1_ODR3 = 0x80, | ||
128 | }; | ||
129 | |||
121 | enum lis3lv02d_ctrl2 { | 130 | enum lis3lv02d_ctrl2 { |
122 | CTRL2_DAS = 0x01, | 131 | CTRL2_DAS = 0x01, |
123 | CTRL2_SIM = 0x02, | 132 | CTRL2_SIM = 0x02, |
@@ -129,6 +138,14 @@ enum lis3lv02d_ctrl2 { | |||
129 | CTRL2_FS = 0x80, /* Full Scale selection */ | 138 | CTRL2_FS = 0x80, /* Full Scale selection */ |
130 | }; | 139 | }; |
131 | 140 | ||
141 | enum lis3lv02d_ctrl4_3dc { | ||
142 | CTRL4_SIM = 0x01, | ||
143 | CTRL4_ST0 = 0x02, | ||
144 | CTRL4_ST1 = 0x04, | ||
145 | CTRL4_FS0 = 0x10, | ||
146 | CTRL4_FS1 = 0x20, | ||
147 | }; | ||
148 | |||
132 | enum lis302d_ctrl2 { | 149 | enum lis302d_ctrl2 { |
133 | HP_FF_WU2 = 0x08, | 150 | HP_FF_WU2 = 0x08, |
134 | HP_FF_WU1 = 0x04, | 151 | HP_FF_WU1 = 0x04, |