include: regulator: add header for RPM-SMD voltage levels
Add a header file for the rpm-smd regulator voltage
level constants to be used in device tree regulator
configurations.
This snapshot of the rpm-smd-regulator driver as of
msm-5.4 commit dfb95ba01894 ("defconfig: Remove redundant
configs for monaco").
Change-Id: I938efda9fe2ff7c50dc9e5f493ca846e42b66e70
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
This commit is contained in:
parent
57baf100c3
commit
94663159cf
1 changed files with 28 additions and 0 deletions
28
include/dt-bindings/regulator/qcom,rpm-smd-regulator.h
Normal file
28
include/dt-bindings/regulator/qcom,rpm-smd-regulator.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2015, 2017, 2019-2020, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#ifndef __QCOM_RPM_SMD_REGULATOR_H
|
||||
#define __QCOM_RPM_SMD_REGULATOR_H
|
||||
|
||||
#define RPM_SMD_REGULATOR_LEVEL_NONE 0
|
||||
#define RPM_SMD_REGULATOR_LEVEL_RETENTION 16
|
||||
#define RPM_SMD_REGULATOR_LEVEL_RETENTION_PLUS 32
|
||||
#define RPM_SMD_REGULATOR_LEVEL_MIN_SVS 48
|
||||
#define RPM_SMD_REGULATOR_LEVEL_LOW_SVS 64
|
||||
#define RPM_SMD_REGULATOR_LEVEL_SVS 128
|
||||
#define RPM_SMD_REGULATOR_LEVEL_SVS_PLUS 192
|
||||
#define RPM_SMD_REGULATOR_LEVEL_NOM 256
|
||||
#define RPM_SMD_REGULATOR_LEVEL_NOM_PLUS 320
|
||||
#define RPM_SMD_REGULATOR_LEVEL_TURBO 384
|
||||
#define RPM_SMD_REGULATOR_LEVEL_TURBO_NO_CPR 416
|
||||
#define RPM_SMD_REGULATOR_LEVEL_SUPER_TURBO 464
|
||||
#define RPM_SMD_REGULATOR_LEVEL_BINNING 512
|
||||
|
||||
#define RPM_SMD_REGULATOR_MODE_PASS 0
|
||||
#define RPM_SMD_REGULATOR_MODE_RET 1
|
||||
#define RPM_SMD_REGULATOR_MODE_LPM 2
|
||||
#define RPM_SMD_REGULATOR_MODE_AUTO 3
|
||||
#define RPM_SMD_REGULATOR_MODE_HPM 4
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue