brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · 86713dc Raw
37 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */3 4#ifndef __QCOM_RPMH_REGULATOR_H5#define __QCOM_RPMH_REGULATOR_H6 7/*8 * These mode constants may be used to specify modes for various RPMh regulator9 * device tree properties (e.g. regulator-initial-mode).  Each type of regulator10 * supports a subset of the possible modes.11 *12 * %RPMH_REGULATOR_MODE_RET:	Retention mode in which only an extremely small13 *				load current is allowed.  This mode is supported14 *				by LDO and SMPS type regulators.15 * %RPMH_REGULATOR_MODE_LPM:	Low power mode in which a small load current is16 *				allowed.  This mode corresponds to PFM for SMPS17 *				and BOB type regulators.  This mode is supported18 *				by LDO, HFSMPS, BOB, and PMIC4 FTSMPS type19 *				regulators.20 * %RPMH_REGULATOR_MODE_AUTO:	Auto mode in which the regulator hardware21 *				automatically switches between LPM and HPM based22 *				upon the real-time load current.  This mode is23 *				supported by HFSMPS, BOB, and PMIC4 FTSMPS type24 *				regulators.25 * %RPMH_REGULATOR_MODE_HPM:	High power mode in which the full rated current26 *				of the regulator is allowed.  This mode27 *				corresponds to PWM for SMPS and BOB type28 *				regulators.  This mode is supported by all types29 *				of regulators.30 */31#define RPMH_REGULATOR_MODE_RET		032#define RPMH_REGULATOR_MODE_LPM		133#define RPMH_REGULATOR_MODE_AUTO	234#define RPMH_REGULATOR_MODE_HPM		335 36#endif37