ft5x06_ts.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. *
  3. * FocalTech ft5x06 TouchScreen driver header file.
  4. *
  5. * Copyright (c) 2010 Focal tech Ltd.
  6. * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
  7. *
  8. * This software is licensed under the terms of the GNU General Public
  9. * License version 2, as published by the Free Software Foundation, and
  10. * may be copied, distributed, and modified under those terms.
  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. */
  18. #ifndef __LINUX_FT5X06_TS_H__
  19. #define __LINUX_FT5X06_TS_H__
  20. #define FT5X06_ID 0x55
  21. #define FT5X16_ID 0x0A
  22. #define FT5X36_ID 0x14
  23. #define FT6X06_ID 0x06
  24. struct fw_upgrade_info {
  25. bool auto_cal;
  26. u16 delay_aa;
  27. u16 delay_55;
  28. u8 upgrade_id_1;
  29. u8 upgrade_id_2;
  30. u16 delay_readid;
  31. u16 delay_erase_flash;
  32. };
  33. struct ft5x06_ts_platform_data {
  34. struct fw_upgrade_info info;
  35. const char *name;
  36. const char *fw_name;
  37. u32 irqflags;
  38. u32 irq_gpio;
  39. u32 irq_gpio_flags;
  40. u32 reset_gpio;
  41. u32 reset_gpio_flags;
  42. u32 family_id;
  43. u32 x_max;
  44. u32 y_max;
  45. u32 x_min;
  46. u32 y_min;
  47. u32 panel_minx;
  48. u32 panel_miny;
  49. u32 panel_maxx;
  50. u32 panel_maxy;
  51. u32 group_id;
  52. u32 hard_rst_dly;
  53. u32 soft_rst_dly;
  54. u32 num_max_touches;
  55. bool fw_vkey_support;
  56. bool no_force_update;
  57. bool i2c_pull_up;
  58. bool ignore_id_check;
  59. int (*power_init) (bool);
  60. int (*power_on) (bool);
  61. };
  62. #endif