• Home
  • Raw
  • Download

Lines Matching refs:vp

14 	struct omap_vp_instance *vp = voltdm->vp;  in _vp_set_init_voltage()  local
20 vpconfig = voltdm->read(vp->vpconfig); in _vp_set_init_voltage()
21 vpconfig &= ~(vp->common->vpconfig_initvoltage_mask | in _vp_set_init_voltage()
22 vp->common->vpconfig_forceupdate | in _vp_set_init_voltage()
23 vp->common->vpconfig_initvdd); in _vp_set_init_voltage()
24 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
25 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
28 voltdm->write((vpconfig | vp->common->vpconfig_initvdd), in _vp_set_init_voltage()
29 vp->vpconfig); in _vp_set_init_voltage()
32 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
40 struct omap_vp_instance *vp = voltdm->vp; in omap_vp_init() local
55 vp->enabled = false; in omap_vp_init()
76 __ffs(voltdm->vp->common->vpconfig_erroroffset_mask)) | in omap_vp_init()
77 vp->common->vpconfig_timeouten; in omap_vp_init()
78 voltdm->write(val, vp->vpconfig); in omap_vp_init()
81 val = (waittime << vp->common->vstepmin_smpswaittimemin_shift) | in omap_vp_init()
82 (vstepmin << vp->common->vstepmin_stepmin_shift); in omap_vp_init()
83 voltdm->write(val, vp->vstepmin); in omap_vp_init()
86 val = (vstepmax << vp->common->vstepmax_stepmax_shift) | in omap_vp_init()
87 (waittime << vp->common->vstepmax_smpswaittimemax_shift); in omap_vp_init()
88 voltdm->write(val, vp->vstepmax); in omap_vp_init()
91 val = (vddmax << vp->common->vlimitto_vddmax_shift) | in omap_vp_init()
92 (vddmin << vp->common->vlimitto_vddmin_shift) | in omap_vp_init()
93 (timeout << vp->common->vlimitto_timeout_shift); in omap_vp_init()
94 voltdm->write(val, vp->vlimitto); in omap_vp_init()
102 if (!voltdm->vp) in omap_vp_update_errorgain()
111 voltdm->rmw(voltdm->vp->common->vpconfig_errorgain_mask, in omap_vp_update_errorgain()
113 __ffs(voltdm->vp->common->vpconfig_errorgain_mask), in omap_vp_update_errorgain()
114 voltdm->vp->vpconfig); in omap_vp_update_errorgain()
123 struct omap_vp_instance *vp = voltdm->vp; in omap_vp_forceupdate_scale() local
137 vp->common->ops->clear_txdone(vp->id); in omap_vp_forceupdate_scale()
138 if (!vp->common->ops->check_txdone(vp->id)) in omap_vp_forceupdate_scale()
151 voltdm->write(vpconfig | vp->common->vpconfig_forceupdate, in omap_vp_forceupdate_scale()
152 voltdm->vp->vpconfig); in omap_vp_forceupdate_scale()
159 omap_test_timeout(vp->common->ops->check_txdone(vp->id), in omap_vp_forceupdate_scale()
173 vp->common->ops->clear_txdone(vp->id); in omap_vp_forceupdate_scale()
174 if (!vp->common->ops->check_txdone(vp->id)) in omap_vp_forceupdate_scale()
184 voltdm->write(vpconfig, vp->vpconfig); in omap_vp_forceupdate_scale()
198 struct omap_vp_instance *vp; in omap_vp_enable() local
206 vp = voltdm->vp; in omap_vp_enable()
214 if (vp->enabled) in omap_vp_enable()
227 vpconfig |= vp->common->vpconfig_vpenable; in omap_vp_enable()
228 voltdm->write(vpconfig, vp->vpconfig); in omap_vp_enable()
230 vp->enabled = true; in omap_vp_enable()
242 struct omap_vp_instance *vp; in omap_vp_disable() local
251 vp = voltdm->vp; in omap_vp_disable()
259 if (!vp->enabled) { in omap_vp_disable()
266 vpconfig = voltdm->read(vp->vpconfig); in omap_vp_disable()
267 vpconfig &= ~vp->common->vpconfig_vpenable; in omap_vp_disable()
268 voltdm->write(vpconfig, vp->vpconfig); in omap_vp_disable()
273 omap_test_timeout((voltdm->read(vp->vstatus)), in omap_vp_disable()
279 vp->enabled = false; in omap_vp_disable()