![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
u32 | wait_for_state_idle (u32 timeout_us, void *wacs_register, void *wacs_vldclr_register, u32 *read_reg) |
u32 | wait_for_state_ready (loop_condition_fp fp, u32 timeout_us, void *wacs_register, u32 *read_reg) |
s32 | pwrap_reset_spislv (void) |
s32 | pwrap_wacs2 (u32 write, u16 addr, u16 wdata, u16 *rdata, u32 init_check) |
Definition at line 66 of file pmic_wrap.c.
References mt8173_pwrap_regs::dio_en, E_PWR_TIMEOUT, mt8173_pwrap_regs::hiprio_arb_en, mt8173_pwrap_regs::man_cmd, mt8173_pwrap_regs::man_en, mtk_pwrap, mt8173_pwrap_regs::mux_sel, OP_CSH, OP_CSL, OP_OUTS, OP_WR, TIMEOUT_WAIT_IDLE_US, mt8173_pwrap_regs::wacs2_rdata, wait_for_state_ready(), wait_for_sync(), mt8173_pwrap_regs::wrap_en, and write32().
Referenced by pwrap_init().
Definition at line 99 of file pmic_wrap.c.
References addr, CONFIG, E_PWR_INVALID_ARG, E_PWR_NOT_INIT_DONE, E_PWR_WAIT_IDLE_TIMEOUT, E_PWR_WAIT_IDLE_TIMEOUT_READ, mtk_pwrap, NULL, pwrap_err, RDATA_INIT_DONE_MASK, RDATA_INIT_DONE_V1_SHIFT, RDATA_INIT_DONE_V2_SHIFT, RDATA_WACS_RDATA_MASK, RDATA_WACS_RDATA_SHIFT, read32(), TIMEOUT_READ_US, TIMEOUT_WAIT_IDLE_US, mt8173_pwrap_regs::wacs2_cmd, mt8173_pwrap_regs::wacs2_rdata, mt8173_pwrap_regs::wacs2_vldclr, WACS_INIT_DONE, wait_for_fsm_vldclr(), wait_for_state_idle(), wait_for_state_ready(), and write32().
Referenced by pwrap_init_sidly(), pwrap_read(), pwrap_read_nochk(), pwrap_write(), and pwrap_write_nochk().
u32 wait_for_state_idle | ( | u32 | timeout_us, |
void * | wacs_register, | ||
void * | wacs_vldclr_register, | ||
u32 * | read_reg | ||
) |
Definition at line 7 of file pmic_wrap.c.
References E_PWR_WAIT_IDLE_TIMEOUT, pwrap_err, RDATA_WACS_FSM_MASK, RDATA_WACS_FSM_SHIFT, read32(), read_reg(), stopwatch_expired(), stopwatch_init_usecs_expire(), WACS_FSM_IDLE, WACS_FSM_REQ, WACS_FSM_WFDLE, WACS_FSM_WFVLDCLR, and write32().
Referenced by pwrap_wacs2().
u32 wait_for_state_ready | ( | loop_condition_fp | fp, |
u32 | timeout_us, | ||
void * | wacs_register, | ||
u32 * | read_reg | ||
) |
Definition at line 46 of file pmic_wrap.c.
References E_PWR_WAIT_IDLE_TIMEOUT, pwrap_err, read32(), read_reg(), stopwatch_expired(), and stopwatch_init_usecs_expire().
Referenced by pwrap_init_dio(), pwrap_reset_spislv(), and pwrap_wacs2().