Ejemplo n.º 1
0
    regulator_desc_s2mps14_ldo(11, MIN_800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(12, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(13, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(14, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(15, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(16, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(17, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(18, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(19, MIN_800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(20, MIN_800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(21, MIN_800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(22, MIN_800_MV, STEP_12_5_MV),
    regulator_desc_s2mps14_ldo(23, MIN_800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(24, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_ldo(25, MIN_1800_MV, STEP_25_MV),
    regulator_desc_s2mps14_buck(1, MIN_600_MV, STEP_6_25_MV),
    regulator_desc_s2mps14_buck(2, MIN_600_MV, STEP_6_25_MV),
    regulator_desc_s2mps14_buck(3, MIN_600_MV, STEP_6_25_MV),
    regulator_desc_s2mps14_buck(4, MIN_1400_MV, STEP_12_5_MV),
    regulator_desc_s2mps14_buck(5, MIN_600_MV, STEP_6_25_MV),
};

static int s2mps14_pmic_enable_ext_control(struct s2mps11_info *s2mps11,
        struct regulator_dev *rdev)
{
    return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
                              rdev->desc->enable_mask, S2MPS14_ENABLE_EXT_CONTROL);
}

static void s2mps14_pmic_dt_parse_ext_control_gpio(struct platform_device *pdev,
        struct of_regulator_match *rdata, struct s2mps11_info *s2mps11)
Ejemplo n.º 2
0
	regulator_desc_s2mps14_ldo(11, MIN_800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(12, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(13, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(14, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(15, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(16, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(17, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(18, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(19, MIN_800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(20, MIN_800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(21, MIN_800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(22, MIN_800_MV, STEP_12_5_MV),
	regulator_desc_s2mps14_ldo(23, MIN_800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(24, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_ldo(25, MIN_1800_MV, STEP_25_MV),
	regulator_desc_s2mps14_buck(1, MIN_600_MV, STEP_6_25_MV,
				    S2MPS14_BUCK1235_START_SEL),
	regulator_desc_s2mps14_buck(2, MIN_600_MV, STEP_6_25_MV,
				    S2MPS14_BUCK1235_START_SEL),
	regulator_desc_s2mps14_buck(3, MIN_600_MV, STEP_6_25_MV,
				    S2MPS14_BUCK1235_START_SEL),
	regulator_desc_s2mps14_buck(4, MIN_1400_MV, STEP_12_5_MV,
				    S2MPS14_BUCK4_START_SEL),
	regulator_desc_s2mps14_buck(5, MIN_600_MV, STEP_6_25_MV,
				    S2MPS14_BUCK1235_START_SEL),
};

static int s2mps14_pmic_enable_ext_control(struct s2mps11_info *s2mps11,
		struct regulator_dev *rdev)
{
	return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
			rdev->desc->enable_mask, S2MPS14_ENABLE_EXT_CONTROL);