coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmic_wrap.c File Reference
#include <device/mmio.h>
#include <soc/pmic_wrap.h>
#include <timer.h>
Include dependency graph for pmic_wrap.c:

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)
 

Function Documentation

◆ pwrap_reset_spislv()

◆ pwrap_wacs2()

◆ wait_for_state_idle()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wait_for_state_ready()

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().

Here is the call graph for this function:
Here is the caller graph for this function: