abov_touchkey.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* abov_touchkey.h -- Linux driver for abov chip as touchkey
  2. *
  3. * Copyright (C) 2013 Samsung Electronics Co.Ltd
  4. * Author: Junkyeong Kim <jk0430.kim@samsung.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2, or (at your option) any
  9. * later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. */
  17. #ifndef __LINUX_ABOV_TOUCHKEY_H
  18. #define __LINUX_ABOV_TOUCHKEY_H
  19. #define ABOV_TK_NAME "abov-touchkey"
  20. struct abov_touchkey_platform_data {
  21. unsigned long irq_flag;
  22. int gpio_int;
  23. int gpio_sda;
  24. int gpio_scl;
  25. int gpio_rst;
  26. int gpio_tkey_led_en;
  27. struct regulator *vdd_io_vreg;
  28. struct regulator *avdd_vreg;
  29. const char *supply_name;
  30. struct regulator *vtouch_3p3;
  31. void (*input_event) (void *data);
  32. int (*power) (struct abov_touchkey_platform_data *pdata, bool on);
  33. int (*keyled) (bool on);
  34. };
  35. #endif /* LINUX_ABOV_TOUCHKEY_H */