mms252.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * mms_ts.h - Platform data for Melfas MMS-series touch driver
  3. *
  4. * Copyright (C) 2011 Google Inc.
  5. * Author: Dima Zavin <dima@android.com>
  6. *
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifndef _LINUX_MMS_TOUCH_H
  15. #define _LINUX_MMS_TOUCH_H
  16. #define MELFAS_TS_NAME "mms252-ts"
  17. #define TOUCHKEY 1
  18. struct melfas_tsi_platform_data {
  19. int max_x;
  20. int max_y;
  21. bool invert_x;
  22. bool invert_y;
  23. bool i2c_pull_up;
  24. int gpio_int;
  25. u32 irq_gpio_flags;
  26. int gpio_sda;
  27. u32 sda_gpio_flags;
  28. int gpio_scl;
  29. u32 scl_gpio_flags;
  30. int vdd_en;
  31. int vdd_en2;
  32. int tsp_vendor1;
  33. int tsp_vendor2;
  34. int tkey_led_en;
  35. int key1;
  36. /*int (*mux_fw_flash) (bool to_gpios);
  37. int (*is_vdd_on) (void);
  38. int (*power) (bool on);*/
  39. const u8 *config_fw_version;
  40. const char *fw_name;
  41. bool use_touchkey;
  42. const u8 *touchkey_keycode;
  43. void (*input_event) (void *data);
  44. void (*register_cb) (void *);
  45. u8 panel;
  46. };
  47. extern struct class *sec_class;
  48. void tsp_charger_infom(bool en);
  49. #endif /* _LINUX_MMS_TOUCH_H */