regulator: palmas: model SMPS10 as two regulators
SMPS10 has two outputs OUT1 and OUT2 and have one input IN1. SMPS10-OUT2 is connected to SMPS10-IN1 and can be configured either in BOOST mode or BYPASS mode. regulator_enable of SMPS10-OUT2 configures it in BOOST mode. For BYPASS mode regulator_allow_bypass() API can be used. SMPS10-OUT1 is connected to SMPS10-OUT2 and can be enabled using regulator_enable(). [ axel.lin@ingics.com : Simplify regulator_desc setting for SMPS10_[OUT1|OUT2] Signed-off-by: J Keerthy <j-keerthy@ti.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:

committed by
Mark Brown

parent
d4e4ab86bc
commit
77409d9bcc
@@ -160,7 +160,8 @@ enum palmas_regulators {
|
||||
PALMAS_REG_SMPS7,
|
||||
PALMAS_REG_SMPS8,
|
||||
PALMAS_REG_SMPS9,
|
||||
PALMAS_REG_SMPS10,
|
||||
PALMAS_REG_SMPS10_OUT2,
|
||||
PALMAS_REG_SMPS10_OUT1,
|
||||
/* LDO regulators */
|
||||
PALMAS_REG_LDO1,
|
||||
PALMAS_REG_LDO2,
|
||||
@@ -355,9 +356,9 @@ struct palmas_pmic {
|
||||
int smps123;
|
||||
int smps457;
|
||||
|
||||
int range[PALMAS_REG_SMPS10];
|
||||
unsigned int ramp_delay[PALMAS_REG_SMPS10];
|
||||
unsigned int current_reg_mode[PALMAS_REG_SMPS10];
|
||||
int range[PALMAS_REG_SMPS10_OUT1];
|
||||
unsigned int ramp_delay[PALMAS_REG_SMPS10_OUT1];
|
||||
unsigned int current_reg_mode[PALMAS_REG_SMPS10_OUT1];
|
||||
};
|
||||
|
||||
struct palmas_resource {
|
||||
|
Reference in New Issue
Block a user