Lines Matching full:pmic

101  * omap_vc_config_channel - configure VC channel to PMIC mappings
104 * Configures the VC channel to PMIC mappings for the following
105 * PMIC settings
142 /* Check if sufficient pmic info is available for this vdd */ in omap_vc_pre_scale()
143 if (!voltdm->pmic) { in omap_vc_pre_scale()
144 pr_err("%s: Insufficient pmic info to scale the vdd_%s\n", in omap_vc_pre_scale()
149 if (!voltdm->pmic->uv_to_vsel) { in omap_vc_pre_scale()
150 …pr_err("%s: PMIC function to convert voltage in uV to vsel not registered. Hence unable to scale v… in omap_vc_pre_scale()
161 *target_vsel = voltdm->pmic->uv_to_vsel(target_volt); in omap_vc_pre_scale()
162 *current_vsel = voltdm->pmic->uv_to_vsel(voltdm->nominal_volt); in omap_vc_pre_scale()
185 smps_delay = ((smps_steps * voltdm->pmic->step_size) / in omap_vc_post_scale()
186 voltdm->pmic->slew_rate) + 2; in omap_vc_post_scale()
356 * happen unless the board specific twl4030 PMIC scripts are in omap3_vc_init_pmic_signaling()
377 val = (voltdm->vc_param->on - idle) / voltdm->pmic->slew_rate; in omap3_init_voltsetup1()
395 * Note that pmic is not controlling the voltage scaling during
478 time = voltage_diff / voltdm->pmic->slew_rate; in omap4_calc_volt_ramp()
657 * Use PMIC + board supplied settings for calculating the total I2C
669 if (!voltdm->pmic->i2c_high_speed) { in omap4_vc_i2c_timing_init()
680 /* PMIC pad capacitance */ in omap4_vc_i2c_timing_init()
681 capacitance += voltdm->pmic->i2c_pad_load; in omap4_vc_i2c_timing_init()
730 * omap_vc_i2c_init - initialize I2C interface to PMIC
733 * Use PMIC supplied settings for I2C high-speed mode and
750 if (voltdm->pmic->i2c_high_speed != i2c_high_speed) in omap_vc_i2c_init()
763 i2c_high_speed = voltdm->pmic->i2c_high_speed; in omap_vc_i2c_init()
769 mcode = voltdm->pmic->i2c_mcode; in omap_vc_i2c_init()
786 * Converts a microvolt value to vsel value for the used PMIC.
793 if (voltdm->pmic->vddmin > uvolt) in omap_vc_calc_vsel()
794 uvolt = voltdm->pmic->vddmin; in omap_vc_calc_vsel()
795 if (voltdm->pmic->vddmax < uvolt) { in omap_vc_calc_vsel()
796 WARN(1, "%s: voltage not supported by pmic: %u vs max %u\n", in omap_vc_calc_vsel()
797 __func__, uvolt, voltdm->pmic->vddmax); in omap_vc_calc_vsel()
799 uvolt = voltdm->pmic->vddmax; in omap_vc_calc_vsel()
802 return voltdm->pmic->uv_to_vsel(uvolt); in omap_vc_calc_vsel()
826 if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { in omap_vc_init_channel()
827 pr_err("%s: No PMIC info for vdd_%s\n", __func__, voltdm->name); in omap_vc_init_channel()
843 /* get PMIC/board specific settings */ in omap_vc_init_channel()
844 vc->i2c_slave_addr = voltdm->pmic->i2c_slave_addr; in omap_vc_init_channel()
845 vc->volt_reg_addr = voltdm->pmic->volt_reg_addr; in omap_vc_init_channel()
846 vc->cmd_reg_addr = voltdm->pmic->cmd_reg_addr; in omap_vc_init_channel()
855 * Configure the PMIC register addresses. in omap_vc_init_channel()