]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/power/regulator.h
karo: tx6: enable GPT command
[karo-tx-uboot.git] / include / power / regulator.h
index dd043711405c4ad24dad3c7ce7180364b512e720..1a51c3f07bc80aa0911db796bfdbc12140916266 100644 (file)
@@ -46,6 +46,7 @@
  * Note: For the proper operation, at least name constraint is needed, since
  * it can be used when calling regulator_get_by_platname(). And the mandatory
  * rule for this name is, that it must be globally unique for the single dts.
+ * If regulator-name property is not provided, node name will be chosen.
  *
  * Regulator bind:
  * For each regulator device, the device_bind() should be called with passed
@@ -315,6 +316,17 @@ int regulator_get_mode(struct udevice *dev);
  */
 int regulator_set_mode(struct udevice *dev, int mode_id);
 
+/**
+ * regulators_enable_boot_on() - enable regulators needed for boot
+ *
+ * This enables all regulators which are marked to be on at boot time. This
+ * only works for regulators which don't have a range for voltage/current,
+ * since in that case it is not possible to know which value to use.
+ *
+ * This effectively calls regulator_autoset() for every regulator.
+ */
+int regulators_enable_boot_on(bool verbose);
+
 /**
  * regulator_autoset: setup the voltage/current on a regulator
  *