Lines Matching +full:4 +full:mv
104 #define MENELAUS_LOWBAT_IRQ 4 /* Low battery */
135 #define MCT_CTRL2_S1CD_BUFEN (1 << 4)
448 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, in menelaus_set_voltage() argument
463 "to %d mV (reg 0x%02x, val 0x%02x)\n", in menelaus_set_voltage()
464 vtg->name, mV, vtg->vtg_reg, val); in menelaus_set_voltage()
504 { 1100, 4 },
535 dev_dbg(&c->dev, "Setting VCORE FLOOR to %d mV and ROOF to %d mV\n", in menelaus_set_vcore_hw()
573 int menelaus_set_vmem(unsigned int mV) in menelaus_set_vmem() argument
577 if (mV == 0) in menelaus_set_vmem()
580 val = menelaus_get_vtg_value(mV, vmem_values, ARRAY_SIZE(vmem_values)); in menelaus_set_vmem()
583 return menelaus_set_voltage(&vmem_vtg, mV, val, 0x02); in menelaus_set_vmem()
602 int menelaus_set_vio(unsigned int mV) in menelaus_set_vio() argument
606 if (mV == 0) in menelaus_set_vio()
609 val = menelaus_get_vtg_value(mV, vio_values, ARRAY_SIZE(vio_values)); in menelaus_set_vio()
612 return menelaus_set_voltage(&vio_vtg, mV, val, 0x02); in menelaus_set_vio()
621 { 2400, 4 },
643 int menelaus_set_vdcdc(int dcdc, unsigned int mV) in menelaus_set_vdcdc() argument
655 if (mV == 0) in menelaus_set_vdcdc()
658 val = menelaus_get_vtg_value(mV, vdcdc_values, in menelaus_set_vdcdc()
662 return menelaus_set_voltage(vtg, mV, val, 0x03); in menelaus_set_vdcdc()
680 int menelaus_set_vmmc(unsigned int mV) in menelaus_set_vmmc() argument
684 if (mV == 0) in menelaus_set_vmmc()
687 val = menelaus_get_vtg_value(mV, vmmc_values, ARRAY_SIZE(vmmc_values)); in menelaus_set_vmmc()
690 return menelaus_set_voltage(&vmmc_vtg, mV, val, 0x02); in menelaus_set_vmmc()
705 .vtg_shift = 4,
710 int menelaus_set_vaux(unsigned int mV) in menelaus_set_vaux() argument
714 if (mV == 0) in menelaus_set_vaux()
717 val = menelaus_get_vtg_value(mV, vaux_values, ARRAY_SIZE(vaux_values)); in menelaus_set_vaux()
720 return menelaus_set_voltage(&vaux_vtg, mV, val, 0x02); in menelaus_set_vaux()
838 t->tm_mon = bcd2bin(regs[4]) - 1; in menelaus_to_time()
1198 pr_info("Menelaus rev %d.%d\n", rev >> 4, rev & 0x0f); in menelaus_probe()