Lines Matching refs:mV
456 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV,
473 "to %d mV (reg 0x%02x, val 0x%02x)\n",
474 vtg->name, mV, vtg->vtg_reg, val);
532 int menelaus_set_vcore_sw(unsigned int mV)
537 val = menelaus_get_vtg_value(mV, vcore_values,
542 dev_dbg(&c->dev, "Setting VCORE to %d mV (val 0x%02x)\n", mV, val);
569 dev_dbg(&c->dev, "Setting VCORE FLOOR to %d mV and ROOF to %d mV\n",
607 int menelaus_set_vmem(unsigned int mV)
611 if (mV == 0)
614 val = menelaus_get_vtg_value(mV, vmem_values, ARRAY_SIZE(vmem_values));
617 return menelaus_set_voltage(&vmem_vtg, mV, val, 0x02);
636 int menelaus_set_vio(unsigned int mV)
640 if (mV == 0)
643 val = menelaus_get_vtg_value(mV, vio_values, ARRAY_SIZE(vio_values));
646 return menelaus_set_voltage(&vio_vtg, mV, val, 0x02);
677 int menelaus_set_vdcdc(int dcdc, unsigned int mV)
689 if (mV == 0)
692 val = menelaus_get_vtg_value(mV, vdcdc_values,
696 return menelaus_set_voltage(vtg, mV, val, 0x03);
714 int menelaus_set_vmmc(unsigned int mV)
718 if (mV == 0)
721 val = menelaus_get_vtg_value(mV, vmmc_values, ARRAY_SIZE(vmmc_values));
724 return menelaus_set_voltage(&vmmc_vtg, mV, val, 0x02);
744 int menelaus_set_vaux(unsigned int mV)
748 if (mV == 0)
751 val = menelaus_get_vtg_value(mV, vaux_values, ARRAY_SIZE(vaux_values));
754 return menelaus_set_voltage(&vaux_vtg, mV, val, 0x02);