Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Retu/Tahvo MFD driver interface
0003  *
0004  * This file is subject to the terms and conditions of the GNU General
0005  * Public License. See the file "COPYING" in the main directory of this
0006  * archive for more details.
0007  */
0008 
0009 #ifndef __LINUX_MFD_RETU_H
0010 #define __LINUX_MFD_RETU_H
0011 
0012 struct retu_dev;
0013 
0014 int retu_read(struct retu_dev *, u8);
0015 int retu_write(struct retu_dev *, u8, u16);
0016 
0017 /* Registers */
0018 #define RETU_REG_WATCHDOG   0x17        /* Watchdog */
0019 #define RETU_REG_CC1        0x0d        /* Common control register 1 */
0020 #define RETU_REG_STATUS     0x16        /* Status register */
0021 
0022 /* Interrupt sources */
0023 #define TAHVO_INT_VBUS      0       /* VBUS state */
0024 
0025 /* Interrupt status */
0026 #define TAHVO_STAT_VBUS     (1 << TAHVO_INT_VBUS)
0027 
0028 #endif /* __LINUX_MFD_RETU_H */