pmic: add vreg function

This commit is contained in:
Markinus 2010-08-27 19:12:45 +02:00
parent 45c4a05fb6
commit fecc9d9350
2 changed files with 41 additions and 0 deletions

View File

@ -607,3 +607,10 @@ int pmic_hsed_enable(
HSED_ENABLE_PROC);
}
EXPORT_SYMBOL(pmic_hsed_enable);
int pmic_vreg_set_level(enum vreg_id id, uint16_t millivolt)
{
return pmic_rpc_set_only(id, millivolt, 0, 0, 2, VREG_SET_LEVEL_PROC);
}
EXPORT_SYMBOL(pmic_vreg_set_level);

View File

@ -305,6 +305,40 @@ enum ext_signal_selection_type {
PM_CURRENT_SINK_DTEST4,
};
enum vreg_id{
PM_VREG_MSMA_ID,
PM_VREG_MSMP_ID,
PM_VREG_MSME1_ID,
PM_VREG_MSMC1_ID,
PM_VREG_MSMC2_ID,
PM_VREG_GP3_ID,
PM_VREG_MSME2_ID,
PM_VREG_GP4_ID,
PM_VREG_GP1_ID,
PM_VREG_TCXO_ID,
PM_VREG_PA_ID,
PM_VREG_RFTX_ID,
PM_VREG_RFTX1_ID,
PM_VREG_RFTX2_ID,
PM_VREG_SYNT_ID,
PM_VREG_WLAN_ID,
PM_VREG_USB_ID,
PM_VREG_BOOST_ID,
PM_VREG_MMC_ID,
PM_VREG_RUIM_ID,
PM_VREG_MSMC0_ID,
PM_VREG_GP2_ID,
PM_VREG_GP5_ID,
PM_VREG_GP6_ID,
PM_VREG_RF_ID,
PM_VREG_RF_VCO_ID = PM_VREG_RF_ID+2,
PM_VREG_MPLL_ID,
PM_VREG_S2_ID,
PM_VREG_S3_ID,
PM_VREG_RFUBM_ID,
PM_VREG_NCP_ID,
};
int pmic_lp_mode_control(enum switch_cmd cmd, enum vreg_lp_id id);
int pmic_secure_mpp_control_digital_output(enum mpp_which which,
enum mpp_dlogic_level level, enum mpp_dlogic_out_ctrl out);