qcom,rpmh-regulator.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
  3. #ifndef __QCOM_RPMH_REGULATOR_H
  4. #define __QCOM_RPMH_REGULATOR_H
  5. /*
  6. * These mode constants may be used to specify modes for various RPMh regulator
  7. * device tree properties (e.g. regulator-initial-mode). Each type of regulator
  8. * supports a subset of the possible modes.
  9. *
  10. * %RPMH_REGULATOR_MODE_RET: Retention mode in which only an extremely small
  11. * load current is allowed. This mode is supported
  12. * by LDO and SMPS type regulators.
  13. * %RPMH_REGULATOR_MODE_LPM: Low power mode in which a small load current is
  14. * allowed. This mode corresponds to PFM for SMPS
  15. * and BOB type regulators. This mode is supported
  16. * by LDO, HFSMPS, BOB, and PMIC4 FTSMPS type
  17. * regulators.
  18. * %RPMH_REGULATOR_MODE_AUTO: Auto mode in which the regulator hardware
  19. * automatically switches between LPM and HPM based
  20. * upon the real-time load current. This mode is
  21. * supported by HFSMPS, BOB, and PMIC4 FTSMPS type
  22. * regulators.
  23. * %RPMH_REGULATOR_MODE_HPM: High power mode in which the full rated current
  24. * of the regulator is allowed. This mode
  25. * corresponds to PWM for SMPS and BOB type
  26. * regulators. This mode is supported by all types
  27. * of regulators.
  28. */
  29. #define RPMH_REGULATOR_MODE_RET 0
  30. #define RPMH_REGULATOR_MODE_LPM 1
  31. #define RPMH_REGULATOR_MODE_AUTO 2
  32. #define RPMH_REGULATOR_MODE_HPM 3
  33. #endif