summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorZhou Jingyu <b02241@freescale.com>2010-10-22 16:34:01 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-13 16:10:34 -0500
commit4593c84b8fb78aaa83e81e64d2aa2ffdfdf9c6ee (patch)
treef1df2ec45b199eaaa5a438f2edda342e12c6f142 /arch
parent1c8f8594b37f7ce6e97b4175787f9bcdbce4a012 (diff)
ENGR00132880 Add REGULATOR_CHANGE_STATUS ops mask for mc13892 regulators
Add REGULATOR_CHANGE_STATUS ops mask for mc13892 regulators Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx5/mx50_arm2_pmic_mc13892.c27
-rw-r--r--arch/arm/mach-mx5/mx50_rdp_pmic_mc13892.c36
-rw-r--r--arch/arm/mach-mx5/mx51_3stack_pmic_mc13892.c36
-rw-r--r--arch/arm/mach-mx5/mx51_babbage_pmic_mc13892.c21
-rw-r--r--arch/arm/mach-mx5/mx53_evk_pmic_mc13892.c21
5 files changed, 104 insertions, 37 deletions
diff --git a/arch/arm/mach-mx5/mx50_arm2_pmic_mc13892.c b/arch/arm/mach-mx5/mx50_arm2_pmic_mc13892.c
index fd9b4d308b77..014ec1a985d7 100644
--- a/arch/arm/mach-mx5/mx50_arm2_pmic_mc13892.c
+++ b/arch/arm/mach-mx5/mx50_arm2_pmic_mc13892.c
@@ -177,6 +177,7 @@ static struct regulator_init_data sw4_init = {
static struct regulator_init_data viohi_init = {
.constraints = {
.name = "VIOHI",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.always_on = 1,
.boot_on = 1,
}
@@ -185,6 +186,7 @@ static struct regulator_init_data viohi_init = {
static struct regulator_init_data vusb_init = {
.constraints = {
.name = "VUSB",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -201,7 +203,8 @@ static struct regulator_init_data vdig_init = {
.name = "VDIG",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(1200),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
},
@@ -212,7 +215,8 @@ static struct regulator_init_data vpll_init = {
.name = "VPLL",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -223,7 +227,8 @@ static struct regulator_init_data vusb2_init = {
.name = "VUSB2",
.min_uV = mV_to_uV(2400),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -255,7 +260,8 @@ static struct regulator_init_data vsd_init = {
.name = "VSD",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -278,7 +284,8 @@ static struct regulator_init_data vgen1_init = {
.name = "VGEN1",
.min_uV = mV_to_uV(3000),
.max_uV = mV_to_uV(3000),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
},
.num_consumer_supplies = ARRAY_SIZE(vgen1_consumers),
@@ -290,7 +297,8 @@ static struct regulator_init_data vgen2_init = {
.name = "VGEN2",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -300,7 +308,8 @@ static struct regulator_init_data vgen3_init = {
.name = "VGEN3",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(2900),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -308,24 +317,28 @@ static struct regulator_init_data vgen3_init = {
static struct regulator_init_data gpo1_init = {
.constraints = {
.name = "GPO1",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo2_init = {
.constraints = {
.name = "GPO2",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo3_init = {
.constraints = {
.name = "GPO3",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo4_init = {
.constraints = {
.name = "GPO4",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
diff --git a/arch/arm/mach-mx5/mx50_rdp_pmic_mc13892.c b/arch/arm/mach-mx5/mx50_rdp_pmic_mc13892.c
index 8ad3a4a02074..4a14f1ca5317 100644
--- a/arch/arm/mach-mx5/mx50_rdp_pmic_mc13892.c
+++ b/arch/arm/mach-mx5/mx50_rdp_pmic_mc13892.c
@@ -184,6 +184,7 @@ static struct regulator_init_data sw4_init = {
static struct regulator_init_data viohi_init = {
.constraints = {
.name = "VIOHI",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.always_on = 1,
.boot_on = 1,
}
@@ -192,6 +193,7 @@ static struct regulator_init_data viohi_init = {
static struct regulator_init_data vusb_init = {
.constraints = {
.name = "VUSB",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -208,7 +210,8 @@ static struct regulator_init_data vdig_init = {
.name = "VDIG",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(1200),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
},
@@ -219,7 +222,8 @@ static struct regulator_init_data vpll_init = {
.name = "VPLL",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -230,7 +234,8 @@ static struct regulator_init_data vusb2_init = {
.name = "VUSB2",
.min_uV = mV_to_uV(2400),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -241,7 +246,8 @@ static struct regulator_init_data vvideo_init = {
.name = "VVIDEO",
.min_uV = mV_to_uV(2775),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.apply_uV = 1,
},
};
@@ -251,7 +257,8 @@ static struct regulator_init_data vaudio_init = {
.name = "VAUDIO",
.min_uV = mV_to_uV(2300),
.max_uV = mV_to_uV(3000),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -260,7 +267,8 @@ static struct regulator_init_data vsd_init = {
.name = "VSD",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -270,7 +278,8 @@ static struct regulator_init_data vcam_init = {
.min_uV = mV_to_uV(2500),
.max_uV = mV_to_uV(3000),
.valid_ops_mask =
- REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE,
+ REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE |
+ REGULATOR_CHANGE_STATUS,
.valid_modes_mask = REGULATOR_MODE_FAST | REGULATOR_MODE_NORMAL,
}
};
@@ -280,7 +289,8 @@ static struct regulator_init_data vgen1_init = {
.name = "VGEN1",
.min_uV = mV_to_uV(3000),
.max_uV = mV_to_uV(3000),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
},
};
@@ -289,7 +299,8 @@ static struct regulator_init_data vgen2_init = {
.name = "VGEN2",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -299,31 +310,36 @@ static struct regulator_init_data vgen3_init = {
.name = "VGEN3",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(2900),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo1_init = {
.constraints = {
.name = "GPO1",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo2_init = {
.constraints = {
.name = "GPO2",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo3_init = {
.constraints = {
.name = "GPO3",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo4_init = {
.constraints = {
.name = "GPO4",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
diff --git a/arch/arm/mach-mx5/mx51_3stack_pmic_mc13892.c b/arch/arm/mach-mx5/mx51_3stack_pmic_mc13892.c
index 84c33ec8d7cb..7f2136d44152 100644
--- a/arch/arm/mach-mx5/mx51_3stack_pmic_mc13892.c
+++ b/arch/arm/mach-mx5/mx51_3stack_pmic_mc13892.c
@@ -130,6 +130,7 @@ static struct regulator_init_data sw4_init = {
static struct regulator_init_data viohi_init = {
.constraints = {
.name = "VIOHI",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -137,6 +138,7 @@ static struct regulator_init_data viohi_init = {
static struct regulator_init_data vusb_init = {
.constraints = {
.name = "VUSB",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -153,7 +155,8 @@ static struct regulator_init_data vdig_init = {
.name = "VDIG",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -163,7 +166,8 @@ static struct regulator_init_data vpll_init = {
.name = "VPLL",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -173,7 +177,8 @@ static struct regulator_init_data vusb2_init = {
.name = "VUSB2",
.min_uV = mV_to_uV(2400),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -183,7 +188,8 @@ static struct regulator_init_data vvideo_init = {
.name = "VVIDEO",
.min_uV = mV_to_uV(2500),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -192,7 +198,8 @@ static struct regulator_init_data vaudio_init = {
.name = "VAUDIO",
.min_uV = mV_to_uV(2300),
.max_uV = mV_to_uV(3000),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -201,7 +208,8 @@ static struct regulator_init_data vsd_init = {
.name = "VSD",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -211,7 +219,8 @@ static struct regulator_init_data vcam_init = {
.min_uV = mV_to_uV(2500),
.max_uV = mV_to_uV(3000),
.valid_ops_mask =
- REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE,
+ REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE |
+ REGULATOR_CHANGE_STATUS,
.valid_modes_mask = REGULATOR_MODE_FAST | REGULATOR_MODE_NORMAL,
}
};
@@ -221,7 +230,8 @@ static struct regulator_init_data vgen1_init = {
.name = "VGEN1",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
@@ -230,7 +240,8 @@ static struct regulator_init_data vgen2_init = {
.name = "VGEN2",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -240,31 +251,36 @@ static struct regulator_init_data vgen3_init = {
.name = "VGEN3",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(2900),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo1_init = {
.constraints = {
.name = "GPO1",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo2_init = {
.constraints = {
.name = "GPO2",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo3_init = {
.constraints = {
.name = "GPO3",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo4_init = {
.constraints = {
.name = "GPO4",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
diff --git a/arch/arm/mach-mx5/mx51_babbage_pmic_mc13892.c b/arch/arm/mach-mx5/mx51_babbage_pmic_mc13892.c
index 86e489e5dee7..1d5a06bfb5f4 100644
--- a/arch/arm/mach-mx5/mx51_babbage_pmic_mc13892.c
+++ b/arch/arm/mach-mx5/mx51_babbage_pmic_mc13892.c
@@ -174,6 +174,7 @@ static struct regulator_init_data sw4_init = {
static struct regulator_init_data viohi_init = {
.constraints = {
.name = "VIOHI",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.always_on = 1,
.boot_on = 1,
}
@@ -182,6 +183,7 @@ static struct regulator_init_data viohi_init = {
static struct regulator_init_data vusb_init = {
.constraints = {
.name = "VUSB",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -198,7 +200,8 @@ static struct regulator_init_data vdig_init = {
.name = "VDIG",
.min_uV = mV_to_uV(1650),
.max_uV = mV_to_uV(1650),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
},
.num_consumer_supplies = ARRAY_SIZE(vdig_consumers),
@@ -210,7 +213,8 @@ static struct regulator_init_data vpll_init = {
.name = "VPLL",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -221,7 +225,8 @@ static struct regulator_init_data vusb2_init = {
.name = "VUSB2",
.min_uV = mV_to_uV(2400),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
.always_on = 1,
}
@@ -287,7 +292,8 @@ static struct regulator_init_data vgen2_init = {
.name = "VGEN2",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -297,7 +303,8 @@ static struct regulator_init_data vgen3_init = {
.name = "VGEN3",
.min_uV = mV_to_uV(1800),
.max_uV = mV_to_uV(2900),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
}
};
@@ -305,24 +312,28 @@ static struct regulator_init_data vgen3_init = {
static struct regulator_init_data gpo1_init = {
.constraints = {
.name = "GPO1",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo2_init = {
.constraints = {
.name = "GPO2",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo3_init = {
.constraints = {
.name = "GPO3",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo4_init = {
.constraints = {
.name = "GPO4",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
diff --git a/arch/arm/mach-mx5/mx53_evk_pmic_mc13892.c b/arch/arm/mach-mx5/mx53_evk_pmic_mc13892.c
index 6959751e9a9a..3ed2e14e49ba 100644
--- a/arch/arm/mach-mx5/mx53_evk_pmic_mc13892.c
+++ b/arch/arm/mach-mx5/mx53_evk_pmic_mc13892.c
@@ -130,6 +130,7 @@ static struct regulator_init_data sw4_init = {
static struct regulator_init_data viohi_init = {
.constraints = {
.name = "VIOHI",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -137,6 +138,7 @@ static struct regulator_init_data viohi_init = {
static struct regulator_init_data vusb_init = {
.constraints = {
.name = "VUSB",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -152,7 +154,8 @@ static struct regulator_init_data vdig_init = {
.name = "VDIG",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -162,7 +165,8 @@ static struct regulator_init_data vpll_init = {
.name = "VPLL",
.min_uV = mV_to_uV(1050),
.max_uV = mV_to_uV(1800),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -172,7 +176,8 @@ static struct regulator_init_data vusb2_init = {
.name = "VUSB2",
.min_uV = mV_to_uV(2400),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -182,7 +187,8 @@ static struct regulator_init_data vvideo_init = {
.name = "VVIDEO",
.min_uV = mV_to_uV(2500),
.max_uV = mV_to_uV(2775),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.always_on = 1,
.boot_on = 1,
}
@@ -235,7 +241,8 @@ static struct regulator_init_data vgen2_init = {
.name = "VGEN2",
.min_uV = mV_to_uV(1200),
.max_uV = mV_to_uV(3150),
- .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_STATUS,
.boot_on = 1,
}
};
@@ -253,24 +260,28 @@ static struct regulator_init_data vgen3_init = {
static struct regulator_init_data gpo1_init = {
.constraints = {
.name = "GPO1",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo2_init = {
.constraints = {
.name = "GPO2",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo3_init = {
.constraints = {
.name = "GPO3",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};
static struct regulator_init_data gpo4_init = {
.constraints = {
.name = "GPO4",
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
}
};