iio:imu: Add support for the ADIS16480 and similar IMUs
This patch adds support for the ADIS16375, ADIS16480, ADIS16485, ADIS16488 6 degree to 10 degree of freedom IMUs. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
6807d72113
commit
2f3abe6cbb
5 changed files with 950 additions and 0 deletions
|
@ -20,6 +20,8 @@
|
|||
#define ADIS_PAGE_SIZE 0x80
|
||||
#define ADIS_REG_PAGE_ID 0x00
|
||||
|
||||
struct adis;
|
||||
|
||||
/**
|
||||
* struct adis_data - ADIS chip variant specific data
|
||||
* @read_delay: SPI delay for read operations in us
|
||||
|
@ -44,6 +46,8 @@ struct adis_data {
|
|||
const char * const *status_error_msgs;
|
||||
unsigned int status_error_mask;
|
||||
|
||||
int (*enable_irq)(struct adis *adis, bool enable);
|
||||
|
||||
bool has_paging;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue