summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Zhu <Richard.Zhu@freescale.com>2014-12-25 14:28:06 +0800
committerRichard Zhu <Richard.Zhu@freescale.com>2015-01-19 09:01:09 +0800
commitdf691a62a6917321c9b85b0b6e9e56f1c01ace5d (patch)
tree643e2ff9aeeff54906de58de9b0af55cc6273e03 /include
parent7899749a6ef41fe958de5bd618fc0b149305612a (diff)
MLK-10058-2 regulator: consumer: define pre_xxx event macros
Some gpc operations are mandatory required when iMX6SX PCIe PHY is powered on/off. use the notify framwork to encapsulate the pre-operations in gpc driver - add two pre-xxx macros into consumer.h - kick off the pre-xxx events in enable/disalbe call back. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/consumer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index e530681bea70..2cd6d993b4a2 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -105,6 +105,8 @@ struct notifier_block;
#define REGULATOR_EVENT_FORCE_DISABLE 0x20
#define REGULATOR_EVENT_VOLTAGE_CHANGE 0x40
#define REGULATOR_EVENT_DISABLE 0x80
+#define REGULATOR_EVENT_PRE_DISABLE 0x100
+#define REGULATOR_EVENT_PRE_ENABLE 0x200
struct regulator;