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

Go to the source code of this file.

Macros

#define PWM_PORT0   0
 

Enumerations

enum  PWM_DEVICE_E {
  PWM_DEVICE_E_FB_FAN_1 = 0 , PWM_DEVICE_E_FB_FAN_2 , PWM_DEVICE_E_FB_FAN_3 , PWM_DEVICE_E_FB_FAN_4 ,
  PWM_DEVICE_E_FB_FAN_5 , PWM_DEVICE_E_FB_FAN_6 , PWM_DEVICE_E_FB_FAN_7 , PWM_DEVICE_E_FB_FAN_8 ,
  PWM_DEVICE_E_FB_FAN_9 , PWM_DEVICE_E_FB_FAN_10 , PWM_DEVICE_E_FB_FAN_11 , PWM_DEVICE_E_FB_FAN_12 ,
  PWM_DEVICE_E_FB_FAN_13 , PWM_DEVICE_E_FB_FAN_14 , PWM_DEVICE_E_PB_PUMB_1 , PWM_DEVICE_E_PB_PUMB_2 ,
  PWM_DEVICE_E_PB_PUMB_3 , PWM_DEVICE_E_PB_PUMB_FAN_1 , PWM_DEVICE_E_PB_PUMB_FAN_2 , PWM_DEVICE_E_PB_PUMB_FAN_3 ,
  PWM_DEVICE_E_BB_FAN , PWM_DEVICE_E_MAX
}
 
enum  PWM_GROUP_E { PWM_GROUP_E_HEX_FAN = 0 , PWM_GROUP_E_PUMP , PWM_GROUP_E_RPU_FAN , PWM_GROUP_E_MAX }
 
enum  MANUAL_PWM_E {
  MANUAL_PWM_E_HEX_FAN = 0 , MANUAL_PWM_E_PUMP , MANUAL_PWM_E_RPU_FAN , MANUAL_PWM_E_PUMP_1 ,
  MANUAL_PWM_E_PUMP_2 , MANUAL_PWM_E_PUMP_3 , MANUAL_PWM_E_PUMP_FAN_1 , MANUAL_PWM_E_PUMP_FAN_2 ,
  MANUAL_PWM_E_PUMP_FAN_3 , MANUAL_PWM_E_RPU_PCB_FAN , MANUAL_PWM_E_MAX
}
 

Functions

void init_pwm_dev (void)
 
int ast_pwm_set (int duty)
 
uint8_t plat_pwm_ctrl (enum PWM_DEVICE_E dev, uint8_t duty)
 
uint8_t ctl_all_pwm_dev (uint8_t duty)
 
uint8_t set_pwm_group (uint8_t group, uint8_t duty)
 
uint8_t get_pwm_group_cache (uint8_t group)
 
uint8_t get_pwm_cache (uint8_t idx)
 
uint8_t manual_pwm_idx_to_pwm_idx (uint8_t idx)
 
uint8_t get_manual_pwm_flag (uint8_t idx)
 
void set_manual_pwm_flag (uint8_t idx, uint8_t flag)
 
uint8_t get_manual_pwm_cache (uint8_t idx)
 
void set_manual_pwm_cache (uint8_t idx, uint8_t duty)
 
void set_manual_pwm_cache_to_default (void)
 
void set_manual_pwm_cache_to_zero (void)
 
uint8_t nct7363_wdt_all_disable ()
 
uint8_t nct7363_wdt_all_enable ()
 

Macro Definition Documentation

◆ PWM_PORT0

#define PWM_PORT0   0

Enumeration Type Documentation

◆ MANUAL_PWM_E

Enumerator
MANUAL_PWM_E_HEX_FAN 
MANUAL_PWM_E_PUMP 
MANUAL_PWM_E_RPU_FAN 
MANUAL_PWM_E_PUMP_1 
MANUAL_PWM_E_PUMP_2 
MANUAL_PWM_E_PUMP_3 
MANUAL_PWM_E_PUMP_FAN_1 
MANUAL_PWM_E_PUMP_FAN_2 
MANUAL_PWM_E_PUMP_FAN_3 
MANUAL_PWM_E_RPU_PCB_FAN 
MANUAL_PWM_E_MAX 

◆ PWM_DEVICE_E

Enumerator
PWM_DEVICE_E_FB_FAN_1 
PWM_DEVICE_E_FB_FAN_2 
PWM_DEVICE_E_FB_FAN_3 
PWM_DEVICE_E_FB_FAN_4 
PWM_DEVICE_E_FB_FAN_5 
PWM_DEVICE_E_FB_FAN_6 
PWM_DEVICE_E_FB_FAN_7 
PWM_DEVICE_E_FB_FAN_8 
PWM_DEVICE_E_FB_FAN_9 
PWM_DEVICE_E_FB_FAN_10 
PWM_DEVICE_E_FB_FAN_11 
PWM_DEVICE_E_FB_FAN_12 
PWM_DEVICE_E_FB_FAN_13 
PWM_DEVICE_E_FB_FAN_14 
PWM_DEVICE_E_PB_PUMB_1 
PWM_DEVICE_E_PB_PUMB_2 
PWM_DEVICE_E_PB_PUMB_3 
PWM_DEVICE_E_PB_PUMB_FAN_1 
PWM_DEVICE_E_PB_PUMB_FAN_2 
PWM_DEVICE_E_PB_PUMB_FAN_3 
PWM_DEVICE_E_BB_FAN 
PWM_DEVICE_E_MAX 

◆ PWM_GROUP_E

Enumerator
PWM_GROUP_E_HEX_FAN 
PWM_GROUP_E_PUMP 
PWM_GROUP_E_RPU_FAN 
PWM_GROUP_E_MAX 

Function Documentation

◆ ast_pwm_set()

int ast_pwm_set ( int  duty)

◆ ctl_all_pwm_dev()

uint8_t ctl_all_pwm_dev ( uint8_t  duty)
Here is the call graph for this function:

◆ get_manual_pwm_cache()

uint8_t get_manual_pwm_cache ( uint8_t  idx)

◆ get_manual_pwm_flag()

uint8_t get_manual_pwm_flag ( uint8_t  idx)

◆ get_pwm_cache()

uint8_t get_pwm_cache ( uint8_t  idx)

◆ get_pwm_group_cache()

uint8_t get_pwm_group_cache ( uint8_t  group)

◆ init_pwm_dev()

void init_pwm_dev ( void  )

◆ manual_pwm_idx_to_pwm_idx()

uint8_t manual_pwm_idx_to_pwm_idx ( uint8_t  idx)

◆ nct7363_wdt_all_disable()

uint8_t nct7363_wdt_all_disable ( )
Here is the call graph for this function:

◆ nct7363_wdt_all_enable()

uint8_t nct7363_wdt_all_enable ( )
Here is the call graph for this function:

◆ plat_pwm_ctrl()

uint8_t plat_pwm_ctrl ( enum PWM_DEVICE_E  dev,
uint8_t  duty 
)

◆ set_manual_pwm_cache()

void set_manual_pwm_cache ( uint8_t  idx,
uint8_t  duty 
)

◆ set_manual_pwm_cache_to_default()

void set_manual_pwm_cache_to_default ( void  )

◆ set_manual_pwm_cache_to_zero()

void set_manual_pwm_cache_to_zero ( void  )

◆ set_manual_pwm_flag()

void set_manual_pwm_flag ( uint8_t  idx,
uint8_t  flag 
)

◆ set_pwm_group()

uint8_t set_pwm_group ( uint8_t  group,
uint8_t  duty 
)