diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-26 15:50:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-26 15:50:04 -0400 |
commit | 39b6cc668c5ecc66f6f9c9293ffab681cb6f7065 (patch) | |
tree | f048b17a1b1a0a0f6d6a8d33459e8789c600c634 /include/linux | |
parent | 27953437059c64d14086196eb96f43c78caa9db3 (diff) | |
parent | 3f81b2c49d31e763a9c1da831ceb6cef087cf6c6 (diff) |
Merge tag 'stmp-dev' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm-soc stmp-dev library code from Olof Johansson:
"A number of devices are using a common register layout, this adds
support code for it in lib/stmp_device.c so we do not need to
duplicate it in each driver."
Fix up trivial conflicts in drivers/i2c/busses/i2c-mxs.c and
lib/Makefile
* tag 'stmp-dev' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
i2c: mxs: use global reset function
lib: add support for stmp-style devices
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/stmp_device.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/stmp_device.h b/include/linux/stmp_device.h new file mode 100644 index 000000000000..6cf7ec9547cf --- /dev/null +++ b/include/linux/stmp_device.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * basic functions for devices following the "stmp" style register layout | ||
3 | * | ||
4 | * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef __STMP_DEVICE_H__ | ||
13 | #define __STMP_DEVICE_H__ | ||
14 | |||
15 | #define STMP_OFFSET_REG_SET 0x4 | ||
16 | #define STMP_OFFSET_REG_CLR 0x8 | ||
17 | #define STMP_OFFSET_REG_TOG 0xc | ||
18 | |||
19 | extern int stmp_reset_block(void __iomem *); | ||
20 | #endif /* __STMP_DEVICE_H__ */ | ||