FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pmu_ctrl.h File Reference

Functions

static uint32_t soc_ctrl_info_get (void)
 
static void soc_ctrl_cl_isolate_set (uint32_t value)
 
static uint32_t soc_ctrl_cl_isolate_get (void)
 
static uint32_t soc_ctrl_cl_busy_get (void)
 
static void soc_ctrl_cl_bypass_set (uint32_t value)
 
static uint32_t soc_ctrl_cl_bypass_get (void)
 
static void soc_ctrl_safe_pmu_rar_set (uint32_t value)
 
static uint32_t soc_ctrl_safe_pmu_rar_get (void)
 
static void soc_ctrl_safe_pmu_sleepctrl_set (uint32_t value)
 
static uint32_t soc_ctrl_safe_pmu_sleepctrl_get (void)
 
static uint32_t soc_ctrl_fast_pmu_sleepctrl_get (void)
 
static void soc_ctrl_safe_pmu_force_set (uint32_t value)
 
static uint32_t soc_ctrl_safe_pmu_force_get (void)
 
static uint8_t hal_soc_ctrl_nb_clusters_get (void)
 
static uint8_t hal_soc_ctrl_nb_cores_get (void)
 
static void hal_soc_ctrl_cl_isolate_set (uint8_t isolate)
 
static uint8_t hal_soc_ctrl_cl_busy_get (void)
 
static uint32_t hal_soc_ctrl_cl_bypass_get (void)
 
static void hal_soc_ctrl_cl_bypass_mask_set (uint32_t bypass_mask)
 
static void hal_soc_ctrl_cl_bypass_set (uint8_t reset, uint8_t fll_ret, uint8_t fll_pwd, uint8_t cg, uint8_t byp_clk, uint8_t prog_delay, uint8_t curr_set, uint8_t state, uint8_t byp_cfg, uint8_t byp_pow)
 
static void hal_soc_ctrl_cl_bypass_bypass_set (uint8_t byp_clk, uint8_t byp_cfg, uint8_t byp_pow)
 
static uint8_t hal_soc_ctrl_cl_bypass_state_get (void)
 
static uint32_t hal_soc_ctrl_pmu_rar_get (void)
 
static void hal_soc_ctrl_pmu_regulator_set (uint32_t rar_value)
 
static void hal_soc_ctrl_pmu_rar_set (uint8_t ret_volt, uint8_t low_volt, uint8_t med_volt, uint8_t nom_volt)
 
static uint8_t hal_soc_ctrl_pmu_ret_volt_get (void)
 
static void hal_soc_ctrl_pmu_ret_volt_set (uint8_t ret_volt)
 
static uint8_t hal_soc_ctrl_pmu_low_volt_get (void)
 
static void hal_soc_ctrl_pmu_low_volt_set (uint8_t low_volt)
 
static uint8_t hal_soc_ctrl_pmu_med_volt_get (void)
 
static void hal_soc_ctrl_pmu_med_volt_set (uint8_t med_volt)
 
static uint8_t hal_soc_ctrl_pmu_nom_volt_get (void)
 
static void hal_soc_ctrl_pmu_nom_volt_set (uint8_t nom_volt)
 
static uint32_t hal_soc_ctrl_pmu_sleepctrl_get (void)
 
static uint32_t hal_soc_ctrl_fast_pmu_sleepctrl_get (void)
 
static void hal_soc_ctrl_pmu_sleepctrl_mask_set (uint32_t sleepctrl_mask)
 
static void hal_soc_ctrl_pmu_sleepctrl_set (uint8_t cl_wake, uint8_t boot_type, uint8_t ext_trigger, uint8_t boot_mode, uint8_t wake_state, uint8_t ext_wake_ena, uint8_t ext_wake_type, uint8_t ext_wake_src, uint8_t cl_fll, uint8_t soc_fll, uint8_t l2_r3_ret, uint8_t l2_r2_ret, uint8_t l2_r1_ret, uint8_t l2_r0_ret)
 
static uint32_t hal_soc_ctrl_pmu_force_pd_get (void)
 
static void hal_soc_ctrl_pmu_force_pd_set (uint8_t l2_r3_off, uint8_t l2_r2_off, uint8_t l2_r1_off, uint8_t l2_r0_off, uint8_t l2_r3_ret, uint8_t l2_r2_ret, uint8_t l2_r1_ret, uint8_t l2_r0_ret)
 

Function Documentation

static uint8_t hal_soc_ctrl_cl_busy_get ( void  )
inlinestatic
static void hal_soc_ctrl_cl_bypass_bypass_set ( uint8_t  byp_clk,
uint8_t  byp_cfg,
uint8_t  byp_pow 
)
inlinestatic
static uint32_t hal_soc_ctrl_cl_bypass_get ( void  )
inlinestatic

CL_BYPASS.

References soc_ctrl_cl_bypass_get().

Referenced by __pi_pmu_init().

static void hal_soc_ctrl_cl_bypass_mask_set ( uint32_t  bypass_mask)
inlinestatic

References soc_ctrl_cl_bypass_set().

Referenced by __pi_pmu_init().

static void hal_soc_ctrl_cl_bypass_set ( uint8_t  reset,
uint8_t  fll_ret,
uint8_t  fll_pwd,
uint8_t  cg,
uint8_t  byp_clk,
uint8_t  prog_delay,
uint8_t  curr_set,
uint8_t  state,
uint8_t  byp_cfg,
uint8_t  byp_pow 
)
inlinestatic
static uint8_t hal_soc_ctrl_cl_bypass_state_get ( void  )
inlinestatic
static void hal_soc_ctrl_cl_isolate_set ( uint8_t  isolate)
inlinestatic

CL_ISOLATE.

References SOC_CTRL_CL_ISOLATE_EN, and soc_ctrl_cl_isolate_set().

static uint32_t hal_soc_ctrl_fast_pmu_sleepctrl_get ( void  )
inlinestatic
static uint8_t hal_soc_ctrl_nb_clusters_get ( void  )
inlinestatic
static uint8_t hal_soc_ctrl_nb_cores_get ( void  )
inlinestatic
static uint32_t hal_soc_ctrl_pmu_force_pd_get ( void  )
inlinestatic

FORCE.

References soc_ctrl_safe_pmu_force_get().

static void hal_soc_ctrl_pmu_force_pd_set ( uint8_t  l2_r3_off,
uint8_t  l2_r2_off,
uint8_t  l2_r1_off,
uint8_t  l2_r0_off,
uint8_t  l2_r3_ret,
uint8_t  l2_r2_ret,
uint8_t  l2_r1_ret,
uint8_t  l2_r0_ret 
)
inlinestatic
static uint8_t hal_soc_ctrl_pmu_low_volt_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_low_volt_set ( uint8_t  low_volt)
inlinestatic
static uint8_t hal_soc_ctrl_pmu_med_volt_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_med_volt_set ( uint8_t  med_volt)
inlinestatic
static uint8_t hal_soc_ctrl_pmu_nom_volt_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_nom_volt_set ( uint8_t  nom_volt)
inlinestatic
static uint32_t hal_soc_ctrl_pmu_rar_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_rar_set ( uint8_t  ret_volt,
uint8_t  low_volt,
uint8_t  med_volt,
uint8_t  nom_volt 
)
inlinestatic
static void hal_soc_ctrl_pmu_regulator_set ( uint32_t  rar_value)
inlinestatic
static uint8_t hal_soc_ctrl_pmu_ret_volt_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_ret_volt_set ( uint8_t  ret_volt)
inlinestatic
static uint32_t hal_soc_ctrl_pmu_sleepctrl_get ( void  )
inlinestatic
static void hal_soc_ctrl_pmu_sleepctrl_mask_set ( uint32_t  sleepctrl_mask)
inlinestatic
static uint32_t soc_ctrl_cl_busy_get ( void  )
inlinestatic
static uint32_t soc_ctrl_cl_bypass_get ( void  )
inlinestatic
static void soc_ctrl_cl_bypass_set ( uint32_t  value)
inlinestatic
static uint32_t soc_ctrl_cl_isolate_get ( void  )
inlinestatic
static void soc_ctrl_cl_isolate_set ( uint32_t  value)
inlinestatic
static uint32_t soc_ctrl_fast_pmu_sleepctrl_get ( void  )
inlinestatic
static uint32_t soc_ctrl_info_get ( void  )
inlinestatic
static uint32_t soc_ctrl_safe_pmu_force_get ( void  )
inlinestatic

References hal_read32().

Referenced by hal_soc_ctrl_pmu_force_pd_get().

static void soc_ctrl_safe_pmu_force_set ( uint32_t  value)
inlinestatic

References hal_write32().

Referenced by hal_soc_ctrl_pmu_force_pd_set().

static uint32_t soc_ctrl_safe_pmu_sleepctrl_get ( void  )
inlinestatic
static void soc_ctrl_safe_pmu_sleepctrl_set ( uint32_t  value)
inlinestatic