From: Lorenzo Bianconi Date: Sun, 17 Sep 2017 15:20:45 +0000 (+0200) Subject: iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=281dbadb5fa7ff8f2ee3993d492d959a8e4442ad;p=openwrt%2Fstaging%2Fblogic.git 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: Lorenzo Bianconi Signed-off-by: Jonathan Cameron --- 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, },