input: joystick: Add support for ShinEtsu VTD518 Touchdisc
VTD518 Touchdisc is a device from ShinEtsu supporting communication over I2C. It is a multifunction touchdisc which supports rotary scrolling, X/Y absolute positioning, X/Y relative movement, kinetic scrolling and 5-way switch input. The device reports various motion and key-press events via interrupts. Based on the interrupt status, the driver communicates with the device over I2c and receives the events. These events are then reported to the input subsystem. CRs-Fixed: 237218 Change-Id: Ib40bf4a6e294eae4b0199101a1725c226139da71 Signed-off-by: Anirudh Ghayal <aghayal@qualcomm.com>
This commit is contained in:
committed by
Stephen Boyd
parent
389a81192e
commit
0c6036e200
42
include/linux/input/tdisc_shinetsu.h
Normal file
42
include/linux/input/tdisc_shinetsu.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _TDISC_SHINETSU_H_
|
||||
#define _TDISC_SHINETSU_H_
|
||||
|
||||
struct tdisc_abs_values {
|
||||
int x_max;
|
||||
int y_max;
|
||||
int x_min;
|
||||
int y_min;
|
||||
int pressure_max;
|
||||
int pressure_min;
|
||||
};
|
||||
|
||||
struct tdisc_platform_data {
|
||||
int (*tdisc_setup) (void);
|
||||
void (*tdisc_release) (void);
|
||||
int (*tdisc_enable) (void);
|
||||
int (*tdisc_disable)(void);
|
||||
int tdisc_wakeup;
|
||||
int tdisc_gpio;
|
||||
bool tdisc_report_keys;
|
||||
bool tdisc_report_relative;
|
||||
bool tdisc_report_absolute;
|
||||
bool tdisc_report_wheel;
|
||||
bool tdisc_reverse_x;
|
||||
bool tdisc_reverse_y;
|
||||
struct tdisc_abs_values *tdisc_abs;
|
||||
};
|
||||
|
||||
#endif /* _TDISC_SHINETSU_H_ */
|
||||
Reference in New Issue
Block a user