Lines Matching refs:pmic
143 if (!voltdm->pmic) { in omap_vc_pre_scale()
149 if (!voltdm->pmic->uv_to_vsel) { 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()
377 val = (voltdm->vc_param->on - idle) / voltdm->pmic->slew_rate; in omap3_init_voltsetup1()
478 time = voltage_diff / voltdm->pmic->slew_rate; in omap4_calc_volt_ramp()
669 if (!voltdm->pmic->i2c_high_speed) { in omap4_vc_i2c_timing_init()
681 capacitance += voltdm->pmic->i2c_pad_load; in omap4_vc_i2c_timing_init()
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()
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()
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()
811 if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { in omap_vc_init_channel()
829 vc->i2c_slave_addr = voltdm->pmic->i2c_slave_addr; in omap_vc_init_channel()
830 vc->volt_reg_addr = voltdm->pmic->volt_reg_addr; in omap_vc_init_channel()
831 vc->cmd_reg_addr = voltdm->pmic->cmd_reg_addr; in omap_vc_init_channel()