cy8c_ts.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Header file for:
  2. * Cypress CY8CTMA300 Prototype touchscreen driver.
  3. *
  4. * Copyright (C) 2009, 2010 Cypress Semiconductor, Inc.
  5. * Copyright (c) 2010, The Linux Foundation. All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2, and only version 2, as published by the
  10. * Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20. *
  21. * Cypress reserves the right to make changes without further notice
  22. * to the materials described herein. Cypress does not assume any
  23. * liability arising out of the application described herein.
  24. *
  25. * Contact Cypress Semiconductor at www.cypress.com
  26. *
  27. * History:
  28. * (C) 2010 Cypress - Update for GPL distribution
  29. * (C) 2009 Cypress - Assume maintenance ownership
  30. * (C) 2009 Enea - Original prototype
  31. *
  32. */
  33. #ifndef __CY8C8CTS_H__
  34. #define __CY8C8CTS_H__
  35. /* CY8CTMA300-TMG200 platform data
  36. */
  37. struct cy8c_ts_platform_data {
  38. int (*power_on)(int on);
  39. int (*dev_setup)(bool on);
  40. const char *ts_name;
  41. u32 dis_min_x; /* display resoltion */
  42. u32 dis_max_x;
  43. u32 dis_min_y;
  44. u32 dis_max_y;
  45. u32 min_touch; /* no.of touches supported */
  46. u32 max_touch;
  47. u32 min_tid; /* track id */
  48. u32 max_tid;
  49. u32 min_width;/* size of the finger */
  50. u32 max_width;
  51. u32 res_x; /* TS resolution */
  52. u32 res_y;
  53. u32 swap_xy;
  54. u32 flags;
  55. u16 invert_x;
  56. u16 invert_y;
  57. u8 nfingers;
  58. u32 irq_gpio;
  59. int resout_gpio;
  60. bool wakeup;
  61. };
  62. #endif