Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int soc_update_sys_vdd(enum sys_vdd_level level)
- {
- int rc, target_mv;
- static const int mv[NUM_SYS_VDD_LEVELS] = {
- [NONE...LOW] = 1000,
- [NOMINAL] = 1100,
- [HIGH] = 1200,
- };
- target_mv = mv[level];
- rc = msm_proc_comm(PCOM_CLKCTL_RPC_MIN_MSMC1, &target_mv, NULL);
- if (rc)
- goto out;
- if (target_mv) {
- rc = -EINVAL;
- goto out;
- }
- out:
- return rc;
- }
Add Comment
Please, Sign In to add comment