fingerprint.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2013 Samsung Electronics. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  16. * 02110-1301 USA
  17. */
  18. #ifndef FINGERPRINT_H_
  19. #define FINGERPRINT_H_
  20. #include <linux/clk.h>
  21. /* fingerprint debug timer */
  22. #define FPSENSOR_DEBUG_TIMER_SEC (10 * HZ)
  23. /* For Sensor Type Check */
  24. enum {
  25. SENSOR_UNKNOWN = -1,
  26. SENSOR_FAILED,
  27. SENSOR_VIPER,
  28. SENSOR_RAPTOR,
  29. SENSOR_EGIS,
  30. };
  31. #define SENSOR_STATUS_SIZE 5
  32. static char sensor_status[SENSOR_STATUS_SIZE][8] ={"unknown", "failed",
  33. "viper", "raptor", "egis"};
  34. /* Fingerprint vendor check */
  35. #undef ENABLE_VENDOR_CHECK
  36. #ifdef ENABLE_VENDOR_CHECK
  37. extern int FP_CHECK; /* extern variable */
  38. #endif
  39. #endif