Add two new regulator events macro 'REGULATOR_EVENT_PRE_DO_ENABLE'
and 'REGULATOR_EVENT_PRE_DO_DISABLE', since some gpc operations
should be required when MIPI PHY is powered on/off.
Signed-off-by: Fancy Fang <chen.fang@freescale.com>
{
int ret, delay;
+ _notifier_call_chain(rdev, REGULATOR_EVENT_PRE_DO_ENABLE, NULL);
/* Query before enabling in case configuration dependent. */
ret = _regulator_get_enable_time(rdev);
if (ret >= 0) {
{
int ret;
+ _notifier_call_chain(rdev, REGULATOR_EVENT_PRE_DO_DISABLE, NULL);
trace_regulator_disable(rdev_get_name(rdev));
if (rdev->ena_pin) {
#define REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE 0x200
#define REGULATOR_EVENT_PRE_DISABLE 0x400
#define REGULATOR_EVENT_ABORT_DISABLE 0x800
+#define REGULATOR_EVENT_PRE_DO_ENABLE 0x1000
+#define REGULATOR_EVENT_PRE_DO_DISABLE 0x2000
/**
* struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event