Home
last modified time | relevance | path

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

/trusted-firmware-a-3.4.0/plat/mediatek/common/drivers/pmic_wrap/
Dpmic_wrap_init.c24 uint32_t reg_rdata; in wait_for_state_idle() local
32 reg_rdata = mmio_read_32((uintptr_t)wacs_register); in wait_for_state_idle()
37 switch (((reg_rdata >> RDATA_WACS_FSM_SHIFT) & in wait_for_state_idle()
63 *read_reg = reg_rdata; in wait_for_state_idle()
71 uint32_t reg_rdata; in wait_for_state_ready() local
78 reg_rdata = mmio_read_32((uintptr_t)wacs_register); in wait_for_state_ready()
80 if (((reg_rdata >> RDATA_WACS_FSM_SHIFT) & RDATA_WACS_FSM_MASK) in wait_for_state_ready()
93 *read_reg = reg_rdata; in wait_for_state_ready()
103 uint32_t reg_rdata = 0; in pwrap_wacs2() local
110 reg_rdata = mmio_read_32((uintptr_t)&mtk_pwrap->wacs2_rdata); in pwrap_wacs2()
[all …]
Dpmic_wrap_init_v2.c22 uint32_t reg_rdata = 0U, retry; in pwrap_check_idle() local
28 reg_rdata = mmio_read_32((uintptr_t)wacs_register); in pwrap_check_idle()
33 switch (GET_WACS_FSM(reg_rdata)) { in pwrap_check_idle()
63 uint32_t reg_rdata = 0U, retry; in pwrap_check_vldclr() local
68 reg_rdata = mmio_read_32((uintptr_t)wacs_register); in pwrap_check_vldclr()
69 if (GET_WACS_FSM(reg_rdata) == SWINF_FSM_WFVLDCLR) { in pwrap_check_vldclr()
86 uint32_t reg_rdata, return_value; in pwrap_wacs2() local
126 reg_rdata = mmio_read_32((uintptr_t)&mtk_pwrap->wacs2_rdata); in pwrap_wacs2()
127 *rdata = reg_rdata; in pwrap_wacs2()