rmi_f34.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. *
  3. * Synaptics Register Mapped Interface (RMI4) Function $34 header.
  4. * Copyright (c) 2007 - 2011, Synaptics Incorporated
  5. *
  6. * There is only one function $34 for each RMI4 sensor. This will be
  7. * the function that is used to reflash the firmware and get the
  8. * boot loader address and the boot image block size.
  9. *
  10. *
  11. */
  12. /*
  13. * This file is licensed under the GPL2 license.
  14. *
  15. *#############################################################################
  16. * GPL
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License version 2 as published
  20. * by the Free Software Foundation.
  21. *
  22. * This program is distributed in the hope that it will be useful, but
  23. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  24. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  25. * for more details.
  26. *
  27. *#############################################################################
  28. */
  29. #ifndef _RMI_FUNCTION_34_H
  30. #define _RMI_FUNCTION_34_H
  31. /* define fn $34 commands */
  32. #define WRITE_FW_BLOCK 2
  33. #define ERASE_ALL 3
  34. #define READ_CONFIG_BLOCK 5
  35. #define WRITE_CONFIG_BLOCK 6
  36. #define ERASE_CONFIG 7
  37. #define ENABLE_FLASH_PROG 15
  38. #define DISABLE_FLASH_PROG 16
  39. void FN_34_inthandler(struct rmi_function_info *rmifninfo,
  40. unsigned int assertedIRQs);
  41. int FN_34_config(struct rmi_function_info *rmifninfo);
  42. int FN_34_init(struct rmi_function_device *function_device);
  43. int FN_34_detect(struct rmi_function_info *rmifninfo,
  44. struct rmi_function_descriptor *fndescr,
  45. unsigned int interruptCount);
  46. void FN_34_attention(struct rmi_function_info *rmifninfo);
  47. #endif