|
@@ -107,6 +107,9 @@ static void of_get_regulation_constraints(struct device_node *np,
|
|
if (!of_property_read_u32(np, "regulator-system-load", &pval))
|
|
if (!of_property_read_u32(np, "regulator-system-load", &pval))
|
|
constraints->system_load = pval;
|
|
constraints->system_load = pval;
|
|
|
|
|
|
|
|
+ constraints->over_current_protection = of_property_read_bool(np,
|
|
|
|
+ "regulator-over-current-protection");
|
|
|
|
+
|
|
for (i = 0; i < ARRAY_SIZE(regulator_states); i++) {
|
|
for (i = 0; i < ARRAY_SIZE(regulator_states); i++) {
|
|
switch (i) {
|
|
switch (i) {
|
|
case PM_SUSPEND_MEM:
|
|
case PM_SUSPEND_MEM:
|