summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-09-17 17:20:47 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-10 20:37:20 +0100
commit6f667004612a11460551f464bf979005f520a6ee (patch)
tree50461da4853de0e0137062c535b5389797d4095d /drivers/iio/pressure
parent9915c19056cb2923d36c2f048467aa26491eed82 (diff)
downloadlinux-6f667004612a11460551f464bf979005f520a6ee.tar.bz2
iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework
Add SPI Serial Interface Mode (SIM) register information to STM pressure framework Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure')
-rw-r--r--drivers/iio/pressure/st_pressure_core.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index b8890e37a2d2..15ad6054d9f6 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -297,6 +297,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
.mask = 0x03,
},
},
+ .sim = {
+ .addr = 0x20,
+ .value = BIT(0),
+ },
.multi_read_bit = true,
.bootime = 2,
},
@@ -343,6 +347,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
.addr = 0x20,
.mask = 0x04,
},
+ .sim = {
+ .addr = 0x20,
+ .value = BIT(0),
+ },
.multi_read_bit = true,
.bootime = 2,
},
@@ -406,6 +414,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
.mask = 0x03,
},
},
+ .sim = {
+ .addr = 0x20,
+ .value = BIT(0),
+ },
.multi_read_bit = true,
.bootime = 2,
},
@@ -471,6 +483,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
.mask = 0x03,
},
},
+ .sim = {
+ .addr = 0x10,
+ .value = BIT(0),
+ },
.multi_read_bit = false,
.bootime = 2,
},