提交 281dbadb 编写于 作者: L Lorenzo Bianconi 提交者: Jonathan Cameron

iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework

Add SPI Serial Interface Mode (SIM) register information
to STM gyroscope framework
Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 7886082d
...@@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { ...@@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = {
.mask = 0x07, .mask = 0x07,
}, },
}, },
.sim = {
.addr = 0x23,
.value = BIT(0),
},
.multi_read_bit = true, .multi_read_bit = true,
.bootime = 2, .bootime = 2,
}, },
...@@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { ...@@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = {
.mask = 0x07, .mask = 0x07,
}, },
}, },
.sim = {
.addr = 0x23,
.value = BIT(0),
},
.multi_read_bit = true, .multi_read_bit = true,
.bootime = 2, .bootime = 2,
}, },
...@@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { ...@@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = {
.mask = 0x07, .mask = 0x07,
}, },
}, },
.sim = {
.addr = 0x23,
.value = BIT(0),
},
.multi_read_bit = true, .multi_read_bit = true,
.bootime = 2, .bootime = 2,
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册