ftsCrossCompile.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * FTS Capacitive touch screen controller (FingerTipS)
  4. *
  5. * Copyright (C) 2016-2018, STMicroelectronics Limited.
  6. * Authors: AMG(Analog Mems Group) <[email protected]>
  7. *
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License version 2 as published by
  11. * the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  16. * more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along with
  19. * this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. /**
  22. *
  23. **************************************************************************
  24. ** STMicroelectronics **
  25. **************************************************************************
  26. ** [email protected] **
  27. **************************************************************************
  28. * *
  29. * FTS cross compile *
  30. * *
  31. **************************************************************************
  32. **************************************************************************
  33. *
  34. */
  35. #ifndef __FTS_CROSS_COMPILE_H
  36. #define __FTS_CROSS_COMPILE_H
  37. //#define NDK
  38. //#define DEBUG
  39. #include <linux/init.h>
  40. #include <linux/errno.h>
  41. #include <linux/platform_device.h>
  42. #include <linux/kernel.h>
  43. #include <linux/module.h>
  44. #include <linux/slab.h>
  45. #include <linux/input.h>
  46. #include <linux/interrupt.h>
  47. #include <linux/serio.h>
  48. #include <linux/init.h>
  49. #include <linux/pm.h>
  50. #include <linux/delay.h>
  51. #include <linux/ctype.h>
  52. #include <linux/gpio.h>
  53. #include <linux/i2c.h>
  54. #include <linux/i2c-dev.h>
  55. #include <linux/fs.h>
  56. #include <linux/uaccess.h>
  57. #include <linux/power_supply.h>
  58. #include <linux/firmware.h>
  59. #include <linux/regulator/consumer.h>
  60. #include <linux/of_gpio.h>
  61. //#include <linux/sec_sysfs.h>
  62. #include <linux/i2c.h>
  63. #include <linux/i2c-dev.h>
  64. #include <linux/spi/spidev.h>
  65. #include <linux/fcntl.h>
  66. #include <linux/syscalls.h>
  67. void *stmalloc(size_t size);
  68. void stfree(void *ptr);
  69. #endif