diff options
| author | Aaro Koskinen <[email protected]> | 2012-11-18 18:36:20 +0200 |
|---|---|---|
| committer | Samuel Ortiz <[email protected]> | 2012-11-21 16:07:57 +0100 |
| commit | c7b76dce8ac95fd464bfae741b830d407884c274 (patch) | |
| tree | f8a3440cad5a64bebb17d3a8457f35c54e43f444 /include/linux | |
| parent | dac98aef59eae72c74d9d2464f389f4def15a347 (diff) | |
mfd: Introduce retu-mfd driver
Retu is a multi-function device found on Nokia Internet Tablets
implementing at least watchdog, RTC, headset detection and power button
functionality.
This patch implements minimum functionality providing register access,
IRQ handling and power off functions.
Acked-by: Felipe Balbi <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Aaro Koskinen <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/retu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/mfd/retu.h b/include/linux/mfd/retu.h new file mode 100644 index 000000000000..1e2715d5b836 --- /dev/null +++ b/include/linux/mfd/retu.h @@ -0,0 +1,22 @@ +/* + * Retu 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 + * archive for more details. + */ + +#ifndef __LINUX_MFD_RETU_H +#define __LINUX_MFD_RETU_H + +struct retu_dev; + +int retu_read(struct retu_dev *, u8); +int retu_write(struct retu_dev *, u8, u16); + +/* Registers */ +#define RETU_REG_WATCHDOG 0x17 /* Watchdog */ +#define RETU_REG_CC1 0x0d /* Common control register 1 */ +#define RETU_REG_STATUS 0x16 /* Status register */ + +#endif /* __LINUX_MFD_RETU_H */ |