summaryrefslogtreecommitdiff
path: root/include/linux/mfd/ucb1x00.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-22 19:02:25 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-18 23:15:32 (GMT)
commit2f7510c6070932371e0b842a5470ce7190dcf162 (patch)
tree956bcfceae25b3dac9936910ec2afae2bfbead36 /include/linux/mfd/ucb1x00.h
parentc364ff473a8d31c93da5e21ac5d2789a935c8faf (diff)
downloadlinux-fsl-qoriq-2f7510c6070932371e0b842a5470ce7190dcf162.tar.xz
MFD: ucb1x00-core: add handling for ucb1x00 reset
Provide a way to handle the software controlled ucb1x00 reset signal from the ucb1x00-core driver without having to code platform specifics into these drivers. Acked-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/mfd/ucb1x00.h')
-rw-r--r--include/linux/mfd/ucb1x00.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/ucb1x00.h b/include/linux/mfd/ucb1x00.h
index 731b23a..fd088cc 100644
--- a/include/linux/mfd/ucb1x00.h
+++ b/include/linux/mfd/ucb1x00.h
@@ -104,7 +104,14 @@
#define UCB_MODE_DYN_VFLAG_ENA (1 << 12)
#define UCB_MODE_AUD_OFF_CAN (1 << 13)
+enum ucb1x00_reset {
+ UCB_RST_PROBE,
+ UCB_RST_REMOVE,
+ UCB_RST_PROBE_FAIL,
+};
+
struct ucb1x00_plat_data {
+ void (*reset)(enum ucb1x00_reset);
int gpio_base;
};