pn544.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Driver include for the PN544 NFC chip.
  3. *
  4. * Copyright (C) Nokia Corporation
  5. *
  6. * Author: Jari Vanhala <ext-jari.vanhala@nokia.com>
  7. * Contact: Matti Aaltoenn <matti.j.aaltonen@nokia.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #ifndef _PN544_H_
  22. #define _PN544_H_
  23. #include <linux/i2c.h>
  24. enum {
  25. NFC_GPIO_ENABLE,
  26. NFC_GPIO_FW_RESET,
  27. NFC_GPIO_IRQ
  28. };
  29. /* board config */
  30. struct pn544_nfc_platform_data {
  31. int (*request_resources) (struct i2c_client *client);
  32. void (*free_resources) (void);
  33. void (*enable) (int fw);
  34. int (*test) (void);
  35. void (*disable) (void);
  36. int (*get_gpio)(int type);
  37. };
  38. #endif /* _PN544_H_ */