mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
lis3: add free-fall/wakeup function via platform_data
This offers a way for platforms to define flags and thresholds for the free-fall/wakeup functions of the lis302d chips. More registers needed to be seperated as they are specific to the Signed-off-by: Daniel Mack <daniel@caiaq.de> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0ec48915e8
commit
8873c33483
3 changed files with 36 additions and 6 deletions
|
@ -34,6 +34,15 @@ struct lis3lv02d_platform_data {
|
|||
#define LIS3_IRQ_OPEN_DRAIN (1 << 6)
|
||||
#define LIS3_IRQ_ACTIVE_LOW (1 << 7)
|
||||
unsigned char irq_cfg;
|
||||
|
||||
#define LIS3_WAKEUP_X_LO (1 << 0)
|
||||
#define LIS3_WAKEUP_X_HI (1 << 1)
|
||||
#define LIS3_WAKEUP_Y_LO (1 << 2)
|
||||
#define LIS3_WAKEUP_Y_HI (1 << 3)
|
||||
#define LIS3_WAKEUP_Z_LO (1 << 4)
|
||||
#define LIS3_WAKEUP_Z_HI (1 << 5)
|
||||
unsigned char wakeup_flags;
|
||||
unsigned char wakeup_thresh;
|
||||
};
|
||||
|
||||
#endif /* __LIS3LV02D_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue