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

Go to the source code of this file.

Classes

struct  adc_info
 
struct  board_rev_mappting_table
 

Macros

#define NUMBER_OF_ADC_CHANNEL   16
 
#define AST1030_ADC_BASE_ADDR   0x7e6e9000
 

Enumerations

enum  ADC_REF_VOL_SELECTION {
  REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 ,
  REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 ,
  REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 ,
  REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 ,
  REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40
}
 
enum  ADC_CHANNEL_NUM { CHANNEL_1 = 1 }
 
enum  BOARD_REV_ID {
  BOARD_REV_POC = 0x00 , BOARD_REV_EVT = 0x01 , BOARD_REV_DVT = 0x03 , BOARD_REV_PVT = 0x05 ,
  BOARD_REV_MP = 0x06 , BOARD_POC = 0 , BOARD_POC2 , BOARD_EVT ,
  BOARD_DVT , BOARD_PVT , BOARD_MP , UNKNOWN
}
 

Functions

bool get_adc_voltage (int channel, float *voltage)
 
uint8_t get_board_revision ()
 
int init_platform_config ()
 

Macro Definition Documentation

◆ AST1030_ADC_BASE_ADDR

#define AST1030_ADC_BASE_ADDR   0x7e6e9000

◆ NUMBER_OF_ADC_CHANNEL

#define NUMBER_OF_ADC_CHANNEL   16

Enumeration Type Documentation

◆ ADC_CHANNEL_NUM

Enumerator
CHANNEL_1 

◆ ADC_REF_VOL_SELECTION

Enumerator
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 
REF_VOL_2_5V 
REF_VOL_1_2V 

◆ BOARD_REV_ID

Enumerator
BOARD_REV_POC 
BOARD_REV_EVT 
BOARD_REV_DVT 
BOARD_REV_PVT 
BOARD_REV_MP 
BOARD_POC 
BOARD_POC2 
BOARD_EVT 
BOARD_DVT 
BOARD_PVT 
BOARD_MP 
UNKNOWN 

Function Documentation

◆ get_adc_voltage()

bool get_adc_voltage ( int  channel,
float *  voltage 
)

◆ get_board_revision()

uint8_t get_board_revision ( )

◆ init_platform_config()

int init_platform_config ( )
Here is the call graph for this function: