diff options
| author | Ying-Chun Liu (PaulLiu) <[email protected]> | 2012-03-16 21:12:32 +0100 |
|---|---|---|
| committer | Samuel Ortiz <[email protected]> | 2012-03-16 21:12:32 +0100 |
| commit | 75060a1d9dc016fb25524e65afba7ec86778084f (patch) | |
| tree | eb92d94a914398d05abd0d59a55b30ced09311db /include/linux | |
| parent | 095e7f780be59f3adb4d39ac3cb8d3665b3f2347 (diff) | |
mfd: Add anatop mfd driver
Signed-off-by: Ying-Chun Liu (PaulLiu) <[email protected]>
Acked-by: Shawn Guo <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Cc: Venu Byravarasu <[email protected]>
Cc: Peter Korsgaard <[email protected]>
Cc: Rob Lee <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/anatop.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/mfd/anatop.h b/include/linux/mfd/anatop.h new file mode 100644 index 000000000000..22c1007d3ec5 --- /dev/null +++ b/include/linux/mfd/anatop.h @@ -0,0 +1,40 @@ +/* + * anatop.h - Anatop MFD driver + * + * Copyright (C) 2012 Ying-Chun Liu (PaulLiu) <[email protected]> + * Copyright (C) 2012 Linaro + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __LINUX_MFD_ANATOP_H +#define __LINUX_MFD_ANATOP_H + +#include <linux/spinlock.h> + +/** + * anatop - MFD data + * @ioreg: ioremap register + * @reglock: spinlock for register read/write + */ +struct anatop { + void *ioreg; + spinlock_t reglock; +}; + +extern u32 anatop_get_bits(struct anatop *, u32, int, int); +extern void anatop_set_bits(struct anatop *, u32, int, int, u32); + +#endif /* __LINUX_MFD_ANATOP_H */ |