tc360-touchkey.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * CORERIVER TOUCHCORE 360L touchkey driver
  3. *
  4. * Copyright (C) 2012 Samsung Electronics Co.Ltd
  5. * Author: Taeyoon Yoon <tyoony.yoon@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. */
  12. #ifndef __LINUX_TC360_H
  13. #define __LINUX_TC360_H
  14. #ifdef CONFIG_SAMSUNG_LPM_MODE
  15. extern int poweroff_charging;
  16. #endif
  17. #define TC300K_DEVICE "sec_touchkey" //"tc300k"
  18. #define TSP_BOOSTER
  19. #ifdef TSP_BOOSTER
  20. #include <linux/cpufreq.h>
  21. #define DVFS_STAGE_DUAL 2
  22. #define DVFS_STAGE_SINGLE 1
  23. #define DVFS_STAGE_NONE 0
  24. #define TOUCH_BOOSTER_OFF_TIME 500
  25. #define TOUCH_BOOSTER_CHG_TIME 500
  26. #endif
  27. extern struct class *sec_class;
  28. extern int touch_is_pressed;
  29. extern int system_rev;
  30. struct tc300k_platform_data {
  31. u8 enable;
  32. u32 gpio_scl;
  33. u32 gpio_sda;
  34. u32 gpio_int;
  35. u32 gpio_en;
  36. u32 irq_gpio_flags;
  37. u32 sda_gpio_flags;
  38. u32 scl_gpio_flags;
  39. u32 vcc_gpio_flags;
  40. int udelay;
  41. int num_key;
  42. int sensing_ch_num;
  43. int *keycodes;
  44. u8 suspend_type;
  45. u8 exit_flag;
  46. const char *vcc_en_ldo_name;
  47. const char *vdd_led_ldo_name;
  48. };
  49. #endif /* __LINUX_TC360_H */