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>
This commit is contained in:

committed by
Jonathan Cameron

parent
3f17ada8f3
commit
fdcf6bbb4e
@@ -41,6 +41,7 @@ struct adis_timeout {
|
||||
* @glob_cmd_reg: Register address of the GLOB_CMD register
|
||||
* @msc_ctrl_reg: Register address of the MSC_CTRL register
|
||||
* @diag_stat_reg: Register address of the DIAG_STAT register
|
||||
* @self_test_reg: Register address to request self test command
|
||||
* @status_error_msgs: Array of error messgaes
|
||||
* @status_error_mask:
|
||||
* @timeouts: Chip specific delays
|
||||
@@ -55,6 +56,7 @@ struct adis_data {
|
||||
unsigned int diag_stat_reg;
|
||||
|
||||
unsigned int self_test_mask;
|
||||
unsigned int self_test_reg;
|
||||
bool self_test_no_autoclear;
|
||||
const struct adis_timeout *timeouts;
|
||||
|
||||
|
Reference in New Issue
Block a user