retu.h 723 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Retu/Tahvo MFD driver interface
  3. *
  4. * This file is subject to the terms and conditions of the GNU General
  5. * Public License. See the file "COPYING" in the main directory of this
  6. * archive for more details.
  7. */
  8. #ifndef __LINUX_MFD_RETU_H
  9. #define __LINUX_MFD_RETU_H
  10. struct retu_dev;
  11. int retu_read(struct retu_dev *, u8);
  12. int retu_write(struct retu_dev *, u8, u16);
  13. /* Registers */
  14. #define RETU_REG_WATCHDOG 0x17 /* Watchdog */
  15. #define RETU_REG_CC1 0x0d /* Common control register 1 */
  16. #define RETU_REG_STATUS 0x16 /* Status register */
  17. /* Interrupt sources */
  18. #define TAHVO_INT_VBUS 0 /* VBUS state */
  19. /* Interrupt status */
  20. #define TAHVO_STAT_VBUS (1 << TAHVO_INT_VBUS)
  21. #endif /* __LINUX_MFD_RETU_H */