Searched refs:pdctl (Results 1 – 1 of 1) sorted by relevance
200 uint32_t pdctl; in ti_psc_pd_get() local223 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() local282 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 …]