iio: Added ST-sensors platform data to select the DRDY interrupt pin
This patch add support to redirect the DRDY interrupt on INT1 or INT2 on accelerometer and pressure sensors. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
36e607a16b
commit
23cde4d65c
19 changed files with 153 additions and 40 deletions
24
include/linux/platform_data/st_sensors_pdata.h
Normal file
24
include/linux/platform_data/st_sensors_pdata.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* STMicroelectronics sensors platform-data driver
|
||||
*
|
||||
* Copyright 2013 STMicroelectronics Inc.
|
||||
*
|
||||
* Denis Ciocca <denis.ciocca@st.com>
|
||||
*
|
||||
* Licensed under the GPL-2.
|
||||
*/
|
||||
|
||||
#ifndef ST_SENSORS_PDATA_H
|
||||
#define ST_SENSORS_PDATA_H
|
||||
|
||||
/**
|
||||
* struct st_sensors_platform_data - Platform data for the ST sensors
|
||||
* @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
|
||||
* Available only for accelerometer and pressure sensors.
|
||||
* Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
|
||||
*/
|
||||
struct st_sensors_platform_data {
|
||||
u8 drdy_int_pin;
|
||||
};
|
||||
|
||||
#endif /* ST_SENSORS_PDATA_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue