Lines Matching refs:vsel
22 * @vsel: CPCAP VSEL value to convert
25 * programmed with @vsel.
27 static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel)
29 if (vsel > 0x44)
30 vsel = 0x44;
31 return (((vsel * 125) + 6000)) * 100;
86 * @vsel: MAX8952 VSEL value to convert
89 * programmed with @vsel.
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel)
93 if (vsel > 0x3F)
94 vsel = 0x3F;
95 return (((vsel * 100) + 7700)) * 100;
133 * @vsel: FAN535503 VSEL value to convert
136 * programmed with @vsel.
138 static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel)
141 vsel &= 0x3F;
143 return (((vsel * 125) + 7500)) * 100;
148 * @vsel: FAN535508 VSEL value to convert
151 * programmed with @vsel.
153 static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel)
156 vsel &= 0x3F;
158 if (vsel > 0x37)
159 vsel = 0x37;
160 return (((vsel * 125) + 7500)) * 100;
173 unsigned char vsel;
179 vsel = DIV_ROUND_UP(uv - 750000, 12500);
180 return vsel | 0xC0;
192 unsigned char vsel;
198 vsel = DIV_ROUND_UP(uv - 750000, 12500);
199 return vsel | 0xC0;