fprint_secure.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __FPRINT_SECURE_H
  14. #define __FPRINT_SECURE_H
  15. #if defined(CONFIG_SEC_K_PROJECT) || defined(CONFIG_SEC_ATLANTIC_PROJECT) \
  16. || defined(CONFIG_SEC_S_PROJECT) || defined(CONFIG_SEC_PATEK_PROJECT) \
  17. || defined(CONFIG_MACH_CHAGALL) || defined(CONFIG_MACH_KLIMT) \
  18. || defined(CONFIG_SEC_HESTIA_PROJECT)
  19. #ifdef CONFIG_SEC_FACTORY
  20. #undef ENABLE_SENSORS_FPRINT_SECURE
  21. #else
  22. #define ENABLE_SENSORS_FPRINT_SECURE
  23. #endif /* CONFIG_SEC_FACTORY */
  24. #endif /* K_PROJECT or ATLANTICLTE_ATT or S_PROJECT or ATLANTIC3GEUR_OPEN or CHAGALL or KLIMT */
  25. #if defined(CONFIG_SEC_ATLANTIC_PROJECT) || defined(CONFIG_SEC_HESTIA_PROJECT)
  26. #define FP_SPI_FIRST 20
  27. #define FP_SPI_CS 22
  28. #define FP_SPI_LAST 23
  29. #else /* for K or S or ATLANTIC or CHAGALL or KLIMT */
  30. #define FP_SPI_FIRST 23
  31. #define FP_SPI_CS 25
  32. #define FP_SPI_LAST 26
  33. #endif /* CONFIG_SEC_ATLANTIC_PROJECT */
  34. #endif /* __FPRINT_SECURE_H */