Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2008-2010, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 | * |
| 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 | |
| 18 | struct 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 | |
| 26 | struct 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 | |
| 34 | struct 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 | }; |