Aaro Koskinen | c7b76dc | 2012-11-18 18:36:20 +0200 | [diff] [blame] | 1 | /* |
Aaro Koskinen | 95e50f6 | 2013-04-09 22:51:25 +0300 | [diff] [blame] | 2 | * Retu/Tahvo MFD driver interface |
Aaro Koskinen | c7b76dc | 2012-11-18 18:36:20 +0200 | [diff] [blame] | 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 | |
| 9 | #ifndef __LINUX_MFD_RETU_H |
| 10 | #define __LINUX_MFD_RETU_H |
| 11 | |
| 12 | struct retu_dev; |
| 13 | |
| 14 | int retu_read(struct retu_dev *, u8); |
| 15 | int retu_write(struct retu_dev *, u8, u16); |
| 16 | |
| 17 | /* Registers */ |
| 18 | #define RETU_REG_WATCHDOG 0x17 /* Watchdog */ |
| 19 | #define RETU_REG_CC1 0x0d /* Common control register 1 */ |
| 20 | #define RETU_REG_STATUS 0x16 /* Status register */ |
| 21 | |
Aaro Koskinen | 95e50f6 | 2013-04-09 22:51:25 +0300 | [diff] [blame] | 22 | /* Interrupt sources */ |
| 23 | #define TAHVO_INT_VBUS 0 /* VBUS state */ |
| 24 | |
| 25 | /* Interrupt status */ |
| 26 | #define TAHVO_STAT_VBUS (1 << TAHVO_INT_VBUS) |
| 27 | |
Aaro Koskinen | c7b76dc | 2012-11-18 18:36:20 +0200 | [diff] [blame] | 28 | #endif /* __LINUX_MFD_RETU_H */ |