diff options
author | Nuno Sá <nuno.sa@analog.com> | 2020-02-10 14:26:02 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-03-08 18:28:30 +0100 |
commit | fdcf6bbb4ed388844e74810e117ac87db1347f3a (patch) | |
tree | d325639461e72f88afbf4d853c6320b3be00757c /drivers/iio/imu/adis16460.c | |
parent | iio: imu: adis: add unlocked __adis_initial_startup() (diff) | |
download | linux-fdcf6bbb4ed388844e74810e117ac87db1347f3a.tar.xz linux-fdcf6bbb4ed388844e74810e117ac87db1347f3a.zip |
iio: imu: adis: Add self_test_reg variable
This patch adds a dedicated self_test_reg variable. This is also a step
to let new drivers make use of `adis_initial_startup()`. Some devices
use MSG_CTRL reg to request a self_test command while others use the
GLOB_CMD register.
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/adis16460.c')
-rw-r--r-- | drivers/iio/imu/adis16460.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/imu/adis16460.c b/drivers/iio/imu/adis16460.c index 9539cfe4a259..42fa473c6d81 100644 --- a/drivers/iio/imu/adis16460.c +++ b/drivers/iio/imu/adis16460.c @@ -392,6 +392,8 @@ static const struct adis_timeout adis16460_timeouts = { static const struct adis_data adis16460_data = { .diag_stat_reg = ADIS16460_REG_DIAG_STAT, .glob_cmd_reg = ADIS16460_REG_GLOB_CMD, + .self_test_mask = BIT(2), + .self_test_reg = ADIS16460_REG_GLOB_CMD, .has_paging = false, .read_delay = 5, .write_delay = 5, |