.id = PM8607_ID_LDO##_id, \ .owner = THIS_MODULE, \ }, \ .min_uV = (min) * 1000, \ .max_uV = (max) * 1000, \ .step_uV = (step) * 1000, \ .vol_reg = PM8607_##vreg, \ .vol_shift = (shift), \ .vol_nbits = (nbits), \ .enable_reg = PM8607_##ereg, \ .enable_bit = (ebit), \ .slope_double = (0), \ } static struct pm8607_regulator_info pm8607_regulator_info[] = { PM8607_DVC(1, 0, 1500, 25, BUCK1, 6, GO, 0, SUPPLIES_EN11, 0), PM8607_DVC(3, 0, 1500, 25, BUCK3, 6, GO, 2, SUPPLIES_EN11, 2), PM8607_LDO(1 , 1200, 2800, 0, LDO1 , 0, 2, SUPPLIES_EN11, 3), PM8607_LDO(2 , 1800, 3300, 0, LDO2 , 0, 3, SUPPLIES_EN11, 4), PM8607_LDO(3 , 1800, 3300, 0, LDO3 , 0, 3, SUPPLIES_EN11, 5), PM8607_LDO(4 , 1800, 3300, 0, LDO4 , 0, 3, SUPPLIES_EN11, 6), PM8607_LDO(5 , 2900, 3300, 0, LDO5 , 0, 2, SUPPLIES_EN11, 7), PM8607_LDO(6 , 1800, 3300, 0, LDO6 , 0, 3, SUPPLIES_EN12, 0), PM8607_LDO(7 , 1800, 2900, 0, LDO7 , 0, 3, SUPPLIES_EN12, 1), PM8607_LDO(8 , 1800, 2900, 0, LDO8 , 0, 3, SUPPLIES_EN12, 2), PM8607_LDO(9 , 1800, 3300, 0, LDO9 , 0, 3, SUPPLIES_EN12, 3), PM8607_LDO(10, 1200, 3300, 0, LDO10, 0, 4, SUPPLIES_EN12, 4), PM8607_LDO(12, 1200, 3300, 0, LDO12, 0, 4, SUPPLIES_EN12, 5), PM8607_LDO(14, 1800, 3300, 0, LDO14, 0, 3, SUPPLIES_EN12, 6), };
.type = REGULATOR_VOLTAGE, \ .id = PM8607_ID_LDO##_id, \ .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(LDO##_id##_table), \ .vsel_reg = PM8607_##vreg, \ .vsel_mask = (ARRAY_SIZE(LDO##_id##_table) - 1) << (shift), \ .enable_reg = PM8607_##ereg, \ .enable_mask = 1 << (ebit), \ }, \ .slope_double = (0), \ .vol_table = (unsigned int *)&LDO##_id##_table, \ .vol_suspend = (unsigned int *)&LDO##_id##_suspend_table, \ } static struct pm8607_regulator_info pm8607_regulator_info[] = { PM8607_DVC(BUCK1, GO, BIT(0), SUPPLIES_EN11, 0), PM8607_DVC(BUCK2, GO, BIT(1), SUPPLIES_EN11, 1), PM8607_DVC(BUCK3, GO, BIT(2), SUPPLIES_EN11, 2), PM8607_LDO(1, LDO1, 0, SUPPLIES_EN11, 3), PM8607_LDO(2, LDO2, 0, SUPPLIES_EN11, 4), PM8607_LDO(3, LDO3, 0, SUPPLIES_EN11, 5), PM8607_LDO(4, LDO4, 0, SUPPLIES_EN11, 6), PM8607_LDO(5, LDO5, 0, SUPPLIES_EN11, 7), PM8607_LDO(6, LDO6, 0, SUPPLIES_EN12, 0), PM8607_LDO(7, LDO7, 0, SUPPLIES_EN12, 1), PM8607_LDO(8, LDO8, 0, SUPPLIES_EN12, 2), PM8607_LDO(9, LDO9, 0, SUPPLIES_EN12, 3), PM8607_LDO(10, LDO10, 0, SUPPLIES_EN12, 4), PM8607_LDO(12, LDO12, 0, SUPPLIES_EN12, 5), PM8607_LDO(13, VIBRATOR_SET, 1, VIBRATOR_SET, 0),
.type = REGULATOR_VOLTAGE, \ .id = PM8607_ID_LDO##_id, \ .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(LDO##_id##_table), \ .vsel_reg = PM8607_##vreg, \ .vsel_mask = (ARRAY_SIZE(LDO##_id##_table) - 1) << (shift), \ .enable_reg = PM8607_##ereg, \ .enable_mask = 1 << (ebit), \ }, \ .slope_double = (0), \ .vol_table = (unsigned int *)&LDO##_id##_table, \ .vol_suspend = (unsigned int *)&LDO##_id##_suspend_table, \ } static struct pm8607_regulator_info pm8607_regulator_info[] = { PM8607_DVC(BUCK1, GO, 0, SUPPLIES_EN11, 0), PM8607_DVC(BUCK2, GO, 1, SUPPLIES_EN11, 1), PM8607_DVC(BUCK3, GO, 2, SUPPLIES_EN11, 2), PM8607_LDO(1, LDO1, 0, SUPPLIES_EN11, 3), PM8607_LDO(2, LDO2, 0, SUPPLIES_EN11, 4), PM8607_LDO(3, LDO3, 0, SUPPLIES_EN11, 5), PM8607_LDO(4, LDO4, 0, SUPPLIES_EN11, 6), PM8607_LDO(5, LDO5, 0, SUPPLIES_EN11, 7), PM8607_LDO(6, LDO6, 0, SUPPLIES_EN12, 0), PM8607_LDO(7, LDO7, 0, SUPPLIES_EN12, 1), PM8607_LDO(8, LDO8, 0, SUPPLIES_EN12, 2), PM8607_LDO(9, LDO9, 0, SUPPLIES_EN12, 3), PM8607_LDO(10, LDO10, 0, SUPPLIES_EN12, 4), PM8607_LDO(12, LDO12, 0, SUPPLIES_EN12, 5), PM8607_LDO(13, VIBRATOR_SET, 1, VIBRATOR_SET, 0),