summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-09-17 18:20:46 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-10 22:36:33 +0300
commit9915c19056cb2923d36c2f048467aa26491eed82 (patch)
tree56af7319a1328ab6458d9024c88395448471daf3 /drivers/iio/magnetometer
parent281dbadb5fa7ff8f2ee3993d492d959a8e4442ad (diff)
downloadlinux-9915c19056cb2923d36c2f048467aa26491eed82.tar.xz
iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL
Add SPI Serial Interface Mode (SIM) register information to LIS3MDL magn sensor Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/st_magn_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
index 8745686f233c..72f6d1335a04 100644
--- a/drivers/iio/magnetometer/st_magn_core.c
+++ b/drivers/iio/magnetometer/st_magn_core.c
@@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
.mask = 0x07,
},
},
+ .sim = {
+ .addr = 0x22,
+ .value = BIT(2),
+ },
.multi_read_bit = true,
.bootime = 2,
},