ofn_atlab.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Copyright (c) 2008-2010, The Linux Foundation. All rights reserved.
  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. struct ofn_function1 {
  18. bool no_motion1_en;
  19. bool touch_sensor_en;
  20. bool ofn_en;
  21. u16 clock_select_khz;
  22. u32 cpi_selection;
  23. };
  24. struct ofn_function2 {
  25. bool invert_y;
  26. bool invert_x;
  27. bool swap_x_y;
  28. bool hold_a_b_en;
  29. bool motion_filter_en;
  30. };
  31. struct ofn_atlab_platform_data {
  32. int irq_button_l;
  33. int irq_button_r;
  34. int gpio_button_l;
  35. int gpio_button_r;
  36. int rotate_xy;
  37. int (*gpio_setup)(void);
  38. void (*gpio_release)(void);
  39. int (*optnav_on)(void);
  40. void (*optnav_off)(void);
  41. struct ofn_function1 function1;
  42. struct ofn_function2 function2;
  43. };