OpenBIC
OpenSource Bridge-IC
plat_vr_test_mode.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vr_test_mode_setting_t
 
struct  mps_vr_test_mode_setting_t
 

Macros

#define VR_FAST_OCP_REG   0x46
 
#define VR_SLOW_OCP_REG   0xEA
 
#define VR_UVP_REG   0x44
 
#define VR_OVP_REG   0x40
 
#define VR_VOUT_MAX_REG   0x24
 
#define VR_VOUT_REG   0x21
 
#define VR_LOOPCFG_REG   0xF0
 
#define VR_UVP_0_DMA_ADDR   0xEA3D
 
#define VR_UVP_1_DMA_ADDR   0xEABD
 
#define VR_OVP_0_DMA_ADDR   0xEA3E
 
#define VR_OVP_1_DMA_ADDR   0xEABE
 
#define NO_USE   0xFF
 
#define NO_ACTION   0
 
#define LATCH_OFF   1
 
#define ENABLE   1
 
#define DISABLE   0
 

Functions

bool get_vr_test_mode_flag (void)
 
void vr_test_mode_enable (bool onoff)
 
void init_vr_test_mode_polling (void)
 
bool dma_write_vr (uint8_t rail, uint16_t reg, uint8_t *data, uint8_t len)
 
bool dma_read_vr (uint8_t rail, uint16_t reg, uint8_t *data, uint8_t len)
 
bool get_vr_offset_uvp_ovp (uint8_t rail, uint16_t *uvp, uint16_t *ovp)
 
bool use_offset_uvp_ovp (uint8_t rail)
 
bool get_vr_fixed_uvp_ovp_enable (uint8_t rail)
 
bool set_vr_fixed_uvp_ovp_enable (uint8_t rail, uint8_t enable)
 

Variables

const vr_test_mode_setting_t vr_test_mode_table []
 
const vr_test_mode_setting_t vr_test_mode_table_default []
 
const uint8_t vr_test_mode_table_size
 
const uint8_t vr_test_mode_table_dafault_size
 
const mps_vr_test_mode_setting_t vr_mps_test_mode_table []
 
const mps_vr_test_mode_setting_t vr_mps_normal_mode_table []
 
const uint8_t vr_mps_test_mode_table_size
 
const uint8_t vr_mps_normal_mode_table_size
 

Macro Definition Documentation

◆ DISABLE

#define DISABLE   0

◆ ENABLE

#define ENABLE   1

◆ LATCH_OFF

#define LATCH_OFF   1

◆ NO_ACTION

#define NO_ACTION   0

◆ NO_USE

#define NO_USE   0xFF

◆ VR_FAST_OCP_REG

#define VR_FAST_OCP_REG   0x46

◆ VR_LOOPCFG_REG

#define VR_LOOPCFG_REG   0xF0

◆ VR_OVP_0_DMA_ADDR

#define VR_OVP_0_DMA_ADDR   0xEA3E

◆ VR_OVP_1_DMA_ADDR

#define VR_OVP_1_DMA_ADDR   0xEABE

◆ VR_OVP_REG

#define VR_OVP_REG   0x40

◆ VR_SLOW_OCP_REG

#define VR_SLOW_OCP_REG   0xEA

◆ VR_UVP_0_DMA_ADDR

#define VR_UVP_0_DMA_ADDR   0xEA3D

◆ VR_UVP_1_DMA_ADDR

#define VR_UVP_1_DMA_ADDR   0xEABD

◆ VR_UVP_REG

#define VR_UVP_REG   0x44

◆ VR_VOUT_MAX_REG

#define VR_VOUT_MAX_REG   0x24

◆ VR_VOUT_REG

#define VR_VOUT_REG   0x21

Function Documentation

◆ dma_read_vr()

bool dma_read_vr ( uint8_t  rail,
uint16_t  reg,
uint8_t *  data,
uint8_t  len 
)

◆ dma_write_vr()

bool dma_write_vr ( uint8_t  rail,
uint16_t  reg,
uint8_t *  data,
uint8_t  len 
)

◆ get_vr_fixed_uvp_ovp_enable()

bool get_vr_fixed_uvp_ovp_enable ( uint8_t  rail)
Here is the call graph for this function:

◆ get_vr_offset_uvp_ovp()

bool get_vr_offset_uvp_ovp ( uint8_t  rail,
uint16_t *  uvp,
uint16_t *  ovp 
)
Here is the call graph for this function:

◆ get_vr_test_mode_flag()

bool get_vr_test_mode_flag ( void  )

◆ init_vr_test_mode_polling()

void init_vr_test_mode_polling ( void  )
Here is the call graph for this function:

◆ set_vr_fixed_uvp_ovp_enable()

bool set_vr_fixed_uvp_ovp_enable ( uint8_t  rail,
uint8_t  enable 
)
Here is the call graph for this function:

◆ use_offset_uvp_ovp()

bool use_offset_uvp_ovp ( uint8_t  rail)

◆ vr_test_mode_enable()

void vr_test_mode_enable ( bool  onoff)
Here is the call graph for this function:

Variable Documentation

◆ vr_mps_normal_mode_table

const mps_vr_test_mode_setting_t vr_mps_normal_mode_table[]
extern

◆ vr_mps_normal_mode_table_size

const uint8_t vr_mps_normal_mode_table_size
extern

◆ vr_mps_test_mode_table

const mps_vr_test_mode_setting_t vr_mps_test_mode_table[]
extern

◆ vr_mps_test_mode_table_size

const uint8_t vr_mps_test_mode_table_size
extern

◆ vr_test_mode_table

const vr_test_mode_setting_t vr_test_mode_table[]
extern

◆ vr_test_mode_table_dafault_size

const uint8_t vr_test_mode_table_dafault_size
extern

◆ vr_test_mode_table_default

const vr_test_mode_setting_t vr_test_mode_table_default[]
extern

◆ vr_test_mode_table_size

const uint8_t vr_test_mode_table_size
extern