summaryrefslogtreecommitdiff
path: root/include/linux/mfd/retu.h
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-04-09 22:51:25 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-19 00:45:20 +0200
commit95e50f6a2fe9ece6503e355400c171e0f5de61be (patch)
treed3eb87597fbe75b035e6c73887190a99edddc33f /include/linux/mfd/retu.h
parent360e64d8bbe7c78784d769a60d152804f5079577 (diff)
mfd: retu: Add Tahvo support
Tahvo is a multi-function device on Nokia 770, implementing USB transceiver and charge/battery control. It's so close to Retu that a single driver can support both. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/retu.h')
-rw-r--r--include/linux/mfd/retu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mfd/retu.h b/include/linux/mfd/retu.h
index 1e2715d5b836..65471c4a3926 100644
--- a/include/linux/mfd/retu.h
+++ b/include/linux/mfd/retu.h
@@ -1,5 +1,5 @@
/*
- * Retu MFD driver interface
+ * Retu/Tahvo MFD driver interface
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file "COPYING" in the main directory of this
@@ -19,4 +19,10 @@ int retu_write(struct retu_dev *, u8, u16);
#define RETU_REG_CC1 0x0d /* Common control register 1 */
#define RETU_REG_STATUS 0x16 /* Status register */
+/* Interrupt sources */
+#define TAHVO_INT_VBUS 0 /* VBUS state */
+
+/* Interrupt status */
+#define TAHVO_STAT_VBUS (1 << TAHVO_INT_VBUS)
+
#endif /* __LINUX_MFD_RETU_H */