Message ID | 20170917152047.12631-2-lorenzo.bianconi@st.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sun, 17 Sep 2017 17:20:45 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Add SPI Serial Interface Mode (SIM) register information > to STM gyroscope framework > > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/gyro/st_gyro_core.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c > index 46991f7131d1..b31064ba37b9 100644 > --- a/drivers/iio/gyro/st_gyro_core.c > +++ b/drivers/iio/gyro/st_gyro_core.c > @@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c index 46991f7131d1..b31064ba37b9 100644 --- a/drivers/iio/gyro/st_gyro_core.c +++ b/drivers/iio/gyro/st_gyro_core.c @@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, },
Add SPI Serial Interface Mode (SIM) register information to STM gyroscope framework Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/gyro/st_gyro_core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)