summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2013-08-08 17:05:38 -0400
committerJason Liu <r64343@freescale.com>2013-08-23 07:30:16 +0800
commit6af6d59ee1e7414f4710cb85d2f35c430d337a77 (patch)
tree2b45c673fb9f63abcd55395c936ef6a68c3950a4 /include
parent6a20f55fd2c2faa45c0ff92f022f5cc18f51243c (diff)
ENGR00274473-1 regulator: add more notifier events
Some hardware modules need strict flows according to regulator's enable/disable, such as for i.MX6 SOC's PU regulator, there is another power gate in GPC module, it needs to disable PU modules' clock before PU regulator is disabled and need to enable clock right after PU regulator is enabled, then it can do GPC's power gate operation. So we need to add REGULATOR_EVENT_PRE_DISABLE and REGULATOR_EVENT_ENABLE for regulator's notifier events. Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/consumer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 145022a83085..22c540e7cf27 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -2,6 +2,7 @@
* consumer.h -- SoC Regulator consumer support.
*
* Copyright (C) 2007, 2008 Wolfson Microelectronics PLC.
+ * Copyright (C) 2013 Freescale Semiconductor, Inc.
*
* Author: Liam Girdwood <lrg@slimlogic.co.uk>
*
@@ -105,6 +106,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_ENABLE 0x200
struct regulator;