diff options
| author | Fabien Marteau <fabien.marteau@armadeus.com> | 2011-01-10 14:01:13 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-10 14:01:43 -0500 |
| commit | 9d084a3d5dffd076a9a006164ea0dbd9c495f2b0 (patch) | |
| tree | bd711a382df8653bb87bbac7f6fbd55044268462 /include/linux/input | |
| parent | 048fc018c81d2acd86db2c3d1e226ea28f646729 (diff) | |
Input: add Austria Microsystem AS5011 joystick driver
This is driver for EasyPoint AS5011 2 axis joystick chip. This chip is
plugged on an I2C bus.
Tested on ARM processor (i.MX27).
Signed-off-by: Fabien Marteau <fabien.marteau@armadeus.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input')
| -rw-r--r-- | include/linux/input/as5011.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/input/as5011.h b/include/linux/input/as5011.h new file mode 100644 index 000000000000..1affd0ddfa9d --- /dev/null +++ b/include/linux/input/as5011.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #ifndef _AS5011_H | ||
| 2 | #define _AS5011_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Copyright (c) 2010, 2011 Fabien Marteau <fabien.marteau@armadeus.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License version 2 as published by | ||
| 9 | * the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | |||
| 12 | struct as5011_platform_data { | ||
| 13 | unsigned int button_gpio; | ||
| 14 | unsigned int axis_irq; /* irq number */ | ||
| 15 | unsigned long axis_irqflags; | ||
| 16 | char xp, xn; /* threshold for x axis */ | ||
| 17 | char yp, yn; /* threshold for y axis */ | ||
| 18 | }; | ||
| 19 | |||
| 20 | #endif /* _AS5011_H */ | ||
