auo-pixcir-ts.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Driver for AUO in-cell touchscreens
  3. *
  4. * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
  5. *
  6. * based on auo_touch.h from Dell Streak kernel
  7. *
  8. * Copyright (c) 2008 QUALCOMM Incorporated.
  9. * Copyright (c) 2008 QUALCOMM USA, INC.
  10. *
  11. *
  12. * This software is licensed under the terms of the GNU General Public
  13. * License version 2, as published by the Free Software Foundation, and
  14. * may be copied, distributed, and modified under those terms.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. */
  22. #ifndef __AUO_PIXCIR_TS_H__
  23. #define __AUO_PIXCIR_TS_H__
  24. /*
  25. * Interrupt modes:
  26. * periodical: interrupt is asserted periodicaly
  27. * compare coordinates: interrupt is asserted when coordinates change
  28. * indicate touch: interrupt is asserted during touch
  29. */
  30. #define AUO_PIXCIR_INT_PERIODICAL 0x00
  31. #define AUO_PIXCIR_INT_COMP_COORD 0x01
  32. #define AUO_PIXCIR_INT_TOUCH_IND 0x02
  33. /*
  34. * @gpio_int interrupt gpio
  35. * @int_setting one of AUO_PIXCIR_INT_*
  36. * @init_hw hardwarespecific init
  37. * @exit_hw hardwarespecific shutdown
  38. * @x_max x-resolution
  39. * @y_max y-resolution
  40. */
  41. struct auo_pixcir_ts_platdata {
  42. int gpio_int;
  43. int gpio_rst;
  44. int int_setting;
  45. unsigned int x_max;
  46. unsigned int y_max;
  47. };
  48. #endif