|
@@ -23,6 +23,8 @@ static void of_get_regulation_constraints(struct device_node *np,
|
|
const __be32 *min_uA, *max_uA, *ramp_delay;
|
|
const __be32 *min_uA, *max_uA, *ramp_delay;
|
|
struct property *prop;
|
|
struct property *prop;
|
|
struct regulation_constraints *constraints = &(*init_data)->constraints;
|
|
struct regulation_constraints *constraints = &(*init_data)->constraints;
|
|
|
|
+ int ret;
|
|
|
|
+ u32 pval;
|
|
|
|
|
|
constraints->name = of_get_property(np, "regulator-name", NULL);
|
|
constraints->name = of_get_property(np, "regulator-name", NULL);
|
|
|
|
|
|
@@ -73,6 +75,10 @@ static void of_get_regulation_constraints(struct device_node *np,
|
|
else
|
|
else
|
|
constraints->ramp_disable = true;
|
|
constraints->ramp_disable = true;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ ret = of_property_read_u32(np, "regulator-enable-ramp-delay", &pval);
|
|
|
|
+ if (!ret)
|
|
|
|
+ constraints->enable_time = pval;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|