Home
last modified time | relevance | path

Searched refs:pdctl (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/ti/pd/
H A Dti_psc.c200 uint32_t pdctl; in ti_psc_pd_get() local
223 pdctl = psc_read(dev, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_get()
225 if ((pdctl & PDCTL_STATE_MASK) != PDCTL_STATE_ON) { in ti_psc_pd_get()
227 pdctl &= ~PDCTL_STATE_MASK; in ti_psc_pd_get()
228 pdctl |= PDCTL_STATE_ON; in ti_psc_pd_get()
231 psc_write(dev, pdctl, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_get()
264 uint32_t pdctl; in ti_psc_pd_put() local
282 pdctl = psc_read(dev, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_put()
283 if ((pdctl & PDCTL_STATE_MASK) != PDCTL_STATE_OFF) { in ti_psc_pd_put()
285 pdctl &= ~PDCTL_STATE_MASK; in ti_psc_pd_put()
[all …]