blob: 6e3a2770c5b91733639f3d8f8ae7da0aa063764c [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2008-2010, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13/*
14 * Atlab optical Finger Navigation driver
15 *
16 */
17
18struct ofn_function1 {
19 bool no_motion1_en;
20 bool touch_sensor_en;
21 bool ofn_en;
22 u16 clock_select_khz;
23 u32 cpi_selection;
24};
25
26struct ofn_function2 {
27 bool invert_y;
28 bool invert_x;
29 bool swap_x_y;
30 bool hold_a_b_en;
31 bool motion_filter_en;
32};
33
34struct ofn_atlab_platform_data {
35 int irq_button_l;
36 int irq_button_r;
37 int gpio_button_l;
38 int gpio_button_r;
39 int rotate_xy;
40 int (*gpio_setup)(void);
41 void (*gpio_release)(void);
42 int (*optnav_on)(void);
43 void (*optnav_off)(void);
44 struct ofn_function1 function1;
45 struct ofn_function2 function2;
46};